Skip to content

Implement KDL v2 draft spec #27

Implement KDL v2 draft spec

Implement KDL v2 draft spec #27

Workflow file for this run

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