{chore} version v0.2.0-next.4 #45
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
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
permissions: | |
contents: read | |
name: "Test" | |
jobs: | |
validations: | |
name: Install and validate dependencies | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
cache: yarn | |
- name: Install | |
run: | | |
yarn install --immutable | |
- name: Check for duplicate dependencies (fix w/ `yarn dedupe`) | |
run: | | |
yarn dedupe --check | |
- if: ${{ github.event_name == 'pull_request' }} | |
name: Review Dependencies | |
uses: actions/dependency-review-action@v4 | |
- name: 'Check for formatting errors (fix w/ "yarn prettier --write path/to/file")' | |
run: | | |
yarn prettier --check . | |
- name: Build | |
run: | | |
yarn build | |
tests: | |
name: Run tests | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
node: | |
- 18.x | |
- 20.x | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{matrix.node}} | |
cache: yarn | |
- name: Install | |
run: | | |
yarn install --immutable | |
- name: Run tests | |
run: | | |
yarn test |