Alpha 11 #47
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Checks | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| env: | |
| NODE: 16 | |
| jobs: | |
| prep: | |
| if: github.event.pull_request.draft == false | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Cancel Previous Runs | |
| uses: styfle/[email protected] | |
| with: | |
| access_token: ${{ github.token }} | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Use Node.js ${{ env.NODE }} | |
| uses: actions/setup-node@v1 | |
| with: | |
| node-version: ${{ env.NODE }} | |
| - name: Cache node_modules | |
| uses: actions/cache@v2 | |
| id: cache-node-modules | |
| with: | |
| path: node_modules | |
| key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }} | |
| - name: Install | |
| run: yarn install | |
| lint: | |
| needs: prep | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Use Node.js ${{ env.NODE }} | |
| uses: actions/setup-node@v1 | |
| with: | |
| node-version: ${{ env.NODE }} | |
| - name: Cache node_modules | |
| uses: actions/cache@v2 | |
| id: cache-node-modules | |
| with: | |
| path: node_modules | |
| key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }} | |
| - name: Install | |
| run: yarn install | |
| - name: Lint | |
| run: yarn lint | |
| test: | |
| needs: prep | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Use Node.js ${{ env.NODE }} | |
| uses: actions/setup-node@v1 | |
| with: | |
| node-version: ${{ env.NODE }} | |
| - name: Cache node_modules | |
| uses: actions/cache@v2 | |
| id: cache-node-modules | |
| with: | |
| path: node_modules | |
| key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }} | |
| - name: Install | |
| run: yarn install | |
| - name: Test | |
| run: yarn test | |
| build: | |
| needs: test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Use Node.js ${{ env.NODE }} | |
| uses: actions/setup-node@v1 | |
| with: | |
| node-version: ${{ env.NODE }} | |
| - name: Cache node_modules | |
| uses: actions/cache@v2 | |
| id: cache-node-modules | |
| with: | |
| path: node_modules | |
| key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }} | |
| - name: Install | |
| run: yarn install | |
| - name: Test | |
| run: yarn build |