-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (42 loc) · 1.25 KB
/
ci.yaml
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: chores
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
extra_nix_config: |
accept-flake-config = true
- run: nix develop .#ci --command bun install --frozen-lockfile
# This step performs several checks, all of which are configured through
# flake.nix. If you are reading this because your GitHub PR workflow
# failed, it is almost certainly due to formatting. Formatting is done
# with `treefmt` and configured in flake.nix:
# - alejandra: nix
# - biome: graphql, json, typescript
# - prettier: markdown, yaml
# - sqlfmt: sql
- run: nix flake check --impure .
package:
name: packaging
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: docker/build-push-action@v6
with:
context: .
cache-from: type=gha
cache-to: type=gha,mode=max