Skip to content

Commit 5db595e

Browse files
authored
ci: check format, lint and tests (#11)
* ci: check format, lint and tests * use windows * use macos
1 parent 6c93c83 commit 5db595e

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed

.github/workflows/ci.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: ci
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
branches: [main]
7+
8+
jobs:
9+
ci:
10+
runs-on: macos-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
15+
- name: Setup Deno
16+
uses: denoland/setup-deno@v2
17+
18+
- name: Format
19+
run: deno fmt --check
20+
21+
- name: Lint
22+
run: deno lint
23+
24+
- name: Test
25+
run: deno task test

.github/workflows/publish.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
permissions:
1212
contents: read
13-
id-token: write # The OIDC ID token is used for authentication with JSR.
13+
id-token: write # The OIDC ID token is used for authentication with JSR.
1414
steps:
1515
- uses: actions/checkout@v4
16-
- run: npx jsr publish
16+
- run: npx jsr publish

0 commit comments

Comments
 (0)