Updates ci config #2
Workflow file for this run
This file contains 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: On Push CI | ||
on: push | ||
jobs: | ||
setup: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [16.x, 20.x] | ||
steps: | ||
- name: Checkout project | ||
uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Install dependencies | ||
run: yarn install | ||
lint: | ||
if: ${{ always() }} | ||
Check failure on line 24 in .github/workflows/pr.ci.yml GitHub Actions / On Push CIInvalid workflow file
|
||
needs: setup | ||
steps: | ||
- name: Run linter | ||
run: yarn run lint | ||
build: | ||
if: ${{ always() }} | ||
needs: setup | ||
steps: | ||
- name: Run build | ||
run: yarn run build | ||
test: | ||
if: ${{ always() }} | ||
needs: setup | ||
steps: | ||
- name: Run tests | ||
run: yarn run test |