Fixed and improved tests for non-npm usage #20
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
name: Build and test pull request | |
concurrency: | |
group: ${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
on: | |
pull_request: | |
branches-ignore: | |
- release | |
jobs: | |
build-test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ inputs.git-ref }} | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: "npm" | |
cache-dependency-path: "package-lock.json" | |
- name: Install dependencies | |
env: | |
CI: true | |
run: | | |
npm ci | |
- name: Build and Test workspaces | |
env: | |
CI: true | |
run: | | |
npm audit --omit=dev | |
npm run build -ws | |
npm run test -ws | |
- if: ${{ always() }} | |
name: Clean working directory | |
run: | | |
rm -r * |