Skip to content

Commit 0e7b933

Browse files
committed
ci: add GitHub Actions workflow
1 parent 2aec814 commit 0e7b933

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

.github/workflows/ci.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
format:
8+
name: Check code formatting
9+
runs-on: ubuntu-24.04
10+
steps:
11+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
12+
- uses: nixbuild/nix-quick-install-action@2c9db80fb984ceb1bcaa77cdda3fdf8cfba92035 # v34
13+
with:
14+
nix_version: 2.31.2
15+
- uses: nicknovitski/nix-develop@9be7cfb4b10451d3390a75dc18ad0465bed4932a # v1
16+
- run: deno fmt --check
17+
lint:
18+
name: Check code linting
19+
runs-on: ubuntu-24.04
20+
steps:
21+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
22+
- uses: nixbuild/nix-quick-install-action@2c9db80fb984ceb1bcaa77cdda3fdf8cfba92035 # v34
23+
with:
24+
nix_version: 2.31.2
25+
- uses: nicknovitski/nix-develop@9be7cfb4b10451d3390a75dc18ad0465bed4932a # v1
26+
- run: deno lint
27+
nix-flake-check:
28+
name: Check flake.nix
29+
runs-on: ubuntu-24.04
30+
steps:
31+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
32+
- uses: nixbuild/nix-quick-install-action@2c9db80fb984ceb1bcaa77cdda3fdf8cfba92035 # v34
33+
with:
34+
nix_version: 2.31.2
35+
- run: nix flake check --all-systems
36+
nix-fmt:
37+
name: Check Nix files formatting
38+
runs-on: ubuntu-24.04
39+
steps:
40+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
41+
- uses: nixbuild/nix-quick-install-action@2c9db80fb984ceb1bcaa77cdda3fdf8cfba92035 # v34
42+
with:
43+
nix_version: 2.31.2
44+
- run: nix fmt . -- --check
45+
typecheck:
46+
name: Check TypeScript
47+
runs-on: ubuntu-24.04
48+
steps:
49+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
50+
- uses: nixbuild/nix-quick-install-action@2c9db80fb984ceb1bcaa77cdda3fdf8cfba92035 # v34
51+
with:
52+
nix_version: 2.31.2
53+
- uses: nicknovitski/nix-develop@9be7cfb4b10451d3390a75dc18ad0465bed4932a # v1
54+
- run: deno task build
55+
- run: deno check

0 commit comments

Comments
 (0)