-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the GitHub Actions CI config.
- Loading branch information
1 parent
753f017
commit 032bcda
Showing
2 changed files
with
44 additions
and
16 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,44 @@ | ||
name: CI | ||
on: [push, pull_request] | ||
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 with ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
name: Test | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
- name: Setup Deno | ||
uses: denoland/setup-deno@v1 | ||
- uses: actions/checkout@v4 | ||
- uses: denoland/setup-deno@v2 | ||
with: | ||
deno-version: "^2.1.6" | ||
- name: Format check | ||
run: deno fmt --check | ||
- name: Lint | ||
run: deno lint | ||
- name: Type check | ||
run: ./scripts/type-check.sh | ||
- name: Test | ||
run: ./scripts/test.sh | ||
deno-version: ${{ env.DENO_VERSION }} | ||
- run: ./scripts/test.sh |
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