Implement KDL v2 draft spec #25
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
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@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20.x | |
cache: yarn | |
- name: Install | |
shell: bash | |
run: | | |
yarn install --immutable | |
- name: Check for duplicate dependencies (fix w/ `yarn dedupe`) | |
shell: bash | |
run: | | |
yarn dedupe --check | |
- if: ${{ github.event_name == 'pull_request' }} | |
name: Review Dependencies | |
uses: actions/dependency-review-action@v1 | |
- name: 'Check for formatting errors (fix w/ "yarn prettier --write path/to/file")' | |
run: | | |
yarn prettier --check . | |
shell: bash | |
- name: Build | |
shell: bash | |
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@v3 | |
with: | |
submodules: true | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: ${{matrix.node}} | |
cache: yarn | |
- name: Install | |
shell: bash | |
run: | | |
yarn install --immutable | |
- name: Run tests | |
shell: bash | |
run: | | |
yarn test |