* ci: Add yarn test of packages/codemirror-lang-kcl * Fix CI error running tests * Fix postcss config error
33 lines
676 B
YAML
33 lines
676 B
YAML
name: CodeMirror Lang KCL
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
yarn-unit-test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version-file: '.nvmrc'
|
|
cache: 'yarn'
|
|
|
|
- run: yarn install
|
|
working-directory: packages/codemirror-lang-kcl
|
|
|
|
- run: yarn tsc
|
|
working-directory: packages/codemirror-lang-kcl
|
|
|
|
- name: run unit tests
|
|
run: yarn test
|
|
working-directory: packages/codemirror-lang-kcl
|