Add CI steps and bump node version #12
Workflow file for this run
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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| install: | |
| name: Install dependencies | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - name: Setup node | |
| uses: ./.github/actions/setup-node | |
| with: | |
| restore-cache: false | |
| - name: Yarn install | |
| run: yarn install --immutable | |
| - name: Cache node_modules | |
| uses: actions/cache/save@a7833574556fa59680c1b7cb190c1735db73ebf0 # v5 | |
| with: | |
| path: node_modules | |
| key: node-modules-${{ hashFiles('yarn.lock') }} | |
| format: | |
| name: Format | |
| needs: install | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - name: Setup node | |
| uses: ./.github/actions/setup-node | |
| - name: Run format | |
| run: yarn format --check | |
| lint: | |
| name: Lint | |
| needs: install | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - name: Setup node | |
| uses: ./.github/actions/setup-node | |
| - name: Run lint | |
| run: yarn lint | |
| build: | |
| name: Build | |
| needs: install | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - name: Setup node | |
| uses: ./.github/actions/setup-node | |
| - name: Run build | |
| run: yarn build |