ci: separate build and test (attempt to resolve Github actions errors) #52
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 | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build-test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
deno-version: [2.1.4] | |
node-version: [20.x] | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Use Deno ${{ matrix.deno-version }} | |
uses: denoland/setup-deno@v1 | |
with: | |
deno-version: v${{ matrix.deno-version }} | |
- name: Run tests | |
run: | | |
npm install | |
deno cache src/deno/rimuc.ts | |
deno run -A Drakefile.ts build | |
deno test -A test/ |