-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a4e79ff
commit 354e10d
Showing
1 changed file
with
91 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,91 @@ | ||
name: Deno CI | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
setup: | ||
name: Setup Deno | ||
runs-on: ubuntu-latest | ||
outputs: | ||
deno-cache: ${{ steps.cache.outputs.cache-hit }} | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Cache Deno modules | ||
id: cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/deno | ||
key: ${{ runner.os }}-deno-cache | ||
|
||
- name: Setup Deno | ||
uses: denoland/setup-deno@v2 | ||
with: | ||
deno-version: v2.x | ||
|
||
check: | ||
name: Deno Check | ||
runs-on: ubuntu-latest | ||
needs: setup | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Deno | ||
uses: denoland/setup-deno@v2 | ||
with: | ||
deno-version: v2.x | ||
|
||
- name: Deno Check | ||
run: deno check . | ||
|
||
lint: | ||
name: Deno Lint | ||
runs-on: ubuntu-latest | ||
needs: setup | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Deno | ||
uses: denoland/setup-deno@v2 | ||
with: | ||
deno-version: v2.x | ||
|
||
- name: Deno Lint | ||
run: deno lint | ||
|
||
format: | ||
name: Deno Format Check | ||
runs-on: ubuntu-latest | ||
needs: setup | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Deno | ||
uses: denoland/setup-deno@v2 | ||
with: | ||
deno-version: v2.x | ||
|
||
- name: Deno Format Check | ||
run: deno fmt --check | ||
|
||
test: | ||
name: Deno Test | ||
runs-on: ubuntu-latest | ||
needs: setup | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Deno | ||
uses: denoland/setup-deno@v2 | ||
with: | ||
deno-version: v2.x | ||
|
||
- name: Deno Test | ||
run: deno test --allow-all |