generated from sripwoud/ts-template
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (31 loc) · 1.01 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: main
on:
# push trigger required to get coveralls monitoring of default branch
# pull_request required to get PR coveralls comments
push:
branches: [main]
pull_request:
branches: [main]
# no need to bother caching bun deps
# https://github.com/oven-sh/setup-bun/issues/14#issuecomment-1714116221
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: jdx/mise-action@v2
with:
mise_toml: |
[tasks]
"check:build" = { dir= "web", run = "bun vite build"}
"check:format" = { run = "dprint check --excludes mise.toml" }
"check:lint" = { run = "biome check --config-path=.biome.jsonc" }
"check:types" = { run = "tsc -p web/tsconfig.app.json" }
"check" = { depends = "check:*" }
[tools]
bun = "latest"
dprint = "latest"
"npm:@biomejs/biome" = "latest"
"npm:typescript" = "latest"
- run: bun i
- run: mise r check