Skip to content

Commit 29f9dbe

Browse files
authored
Merge branch 'dev' into chore/rename-project
2 parents aa231a0 + 026e0d3 commit 29f9dbe

2 files changed

Lines changed: 81 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
env:
8+
# Used to differentiate from other slices of the cache for other workflow runs, and to forcefully bust the cache when renamed
9+
CACHE_KEY_BASE: ci@v1
10+
11+
jobs:
12+
setup:
13+
name: Setup
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v5
18+
19+
- name: Set up Deno
20+
uses: denoland/setup-deno@v2
21+
with:
22+
deno-version: 2.x
23+
cache-hash: ${{ env.CACHE_KEY_BASE }}-${{ hashFiles('deno.lock') }}
24+
25+
- name: Install dependencies
26+
run: deno install
27+
28+
test:
29+
name: Test
30+
needs: [setup]
31+
runs-on: ubuntu-latest
32+
steps:
33+
- name: Checkout repository
34+
uses: actions/checkout@v5
35+
36+
# Now the Deno cache should be warmed up, so this should be much faster
37+
- name: Set up Deno
38+
uses: denoland/setup-deno@v2
39+
with:
40+
deno-version: 2.x
41+
cache-hash: ${{ env.CACHE_KEY_BASE }}-${{ hashFiles('deno.lock') }}
42+
43+
- name: Test
44+
run: deno test --allow-read --no-prompt
45+
46+
lint:
47+
name: Lint
48+
needs: [setup]
49+
runs-on: ubuntu-latest
50+
steps:
51+
- name: Checkout repository
52+
uses: actions/checkout@v5
53+
54+
# Now the Deno cache should be warmed up, so this should be much faster
55+
- name: Set up Deno
56+
uses: denoland/setup-deno@v2
57+
with:
58+
deno-version: 2.x
59+
cache-hash: ${{ env.CACHE_KEY_BASE }}-${{ hashFiles('deno.lock') }}
60+
61+
- name: Lint
62+
run: deno run --allow-env --allow-run --no-prompt npm:@biomejs/biome ci
63+
64+
check:
65+
name: Check
66+
needs: [setup]
67+
runs-on: ubuntu-latest
68+
steps:
69+
- name: Checkout repository
70+
uses: actions/checkout@v5
71+
72+
# Now the Deno cache should be warmed up, so this should be much faster
73+
- name: Set up Deno
74+
uses: denoland/setup-deno@v2
75+
with:
76+
deno-version: 2.x
77+
cache-hash: ${{ env.CACHE_KEY_BASE }}-${{ hashFiles('deno.lock') }}
78+
79+
- name: Lint
80+
run: deno check

deno.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)