
* refactor: move cli to core * feat: move cli to core - use route-middleware in serve - eliminate need for `routes` dir in app * feat: use route-middleware in build * chore: update test gh action
29 lines
702 B
YAML
29 lines
702 B
YAML
name: Test
|
|
|
|
on:
|
|
push:
|
|
branches: ['main']
|
|
pull_request:
|
|
# The branches below must be a subset of the branches above
|
|
branches: ['main']
|
|
schedule:
|
|
- cron: '36 3 * * 2'
|
|
|
|
jobs:
|
|
test:
|
|
name: Run test
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
security-events: write
|
|
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Install core deps
|
|
run: cd packages/core && npm install --ignore-scripts
|
|
|
|
- name: Run CLI tests
|
|
run: npx vitest run .
|
|
continue-on-error: false
|