Update the GitHub Actions CI config. #64
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: CI | |
on: [push, workflow_dispatch] | |
env: | |
DENO_VERSION: "^2.1.6" | |
jobs: | |
format-check: | |
name: Format check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: denoland/setup-deno@v2 | |
with: | |
deno-version: ${{ env.DENO_VERSION }} | |
- run: deno fmt --check | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: denoland/setup-deno@v2 | |
with: | |
deno-version: ${{ env.DENO_VERSION }} | |
- run: deno lint | |
type-check: | |
name: Type check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: denoland/setup-deno@v2 | |
with: | |
deno-version: ${{ env.DENO_VERSION }} | |
- run: ./scripts/type-check.sh | |
test: | |
name: Test | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
# Disable the modern Linux security feature “AppArmor” so the Chromium | |
# developer build installed by Astral can be used in tests: | |
# https://issues.chromium.org/issues/373753919 | |
- name: Disable AppArmor | |
run: echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns | |
if: matrix.os == 'ubuntu-latest' | |
- uses: actions/checkout@v4 | |
- uses: denoland/setup-deno@v2 | |
with: | |
deno-version: ${{ env.DENO_VERSION }} | |
- run: ./scripts/test.sh |