-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (44 loc) · 1.28 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
47
48
49
name: CI
on:
pull_request:
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
with:
extra-conf: |
keep-outputs = true
keep-derivations = true
- name: Use Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Build server package
run: nix build ".#container" -L
flake-check:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
with:
extra-conf: |
keep-outputs = true
keep-derivations = true
- name: Use Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Check flake inputs
uses: DeterminateSystems/flake-checker-action@main
- name: Run flake checks
run: nix flake check -L
fly-check:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Install flyctl
uses: superfly/flyctl-actions/setup-flyctl@master
- name: Validate fly.io config
run: flyctl config validate
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}