chore: Refactor CI workflow #19
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: Test Build | |
on: | |
# Runs on pushes to main/master | |
push: | |
branches: [ main, master ] | |
# Optionally, also run on pull requests to main/master | |
pull_request: | |
branches: [ main, master ] | |
permissions: | |
contents: read | |
pull-requests: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Deno | |
uses: denoland/setup-deno@v1 | |
with: | |
deno-version: "1.41.0" | |
- name: Run Tests | |
run: | | |
rm -f deno.lock | |
deno cache main.ts | |
deno test -A | |
- name: Test Build | |
run: deno task build |