-
Notifications
You must be signed in to change notification settings - Fork 7
59 lines (58 loc) · 1.48 KB
/
test.yaml
File metadata and controls
59 lines (58 loc) · 1.48 KB
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
50
51
52
53
54
55
56
57
58
59
name: Test
on:
push:
branches:
- master
pull_request:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v26
- uses: cachix/cachix-action@v14
with:
name: devenv
- name: Install devenv.sh
run: nix profile install nixpkgs#devenv
- name: Build Web Assets
run: devenv tasks run dist:build
- name: Build
run: devenv shell xcaddy build
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: "caddy"
path: "caddy"
test:
name: Test (${{ matrix.name }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- name: Go
task: test:go
artifact: false
- name: Rust
task: test:rust
artifact: false
- name: Playwright
task: test:playwright
artifact: true
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v26
- uses: cachix/cachix-action@v14
with:
name: devenv
- name: Install devenv.sh
run: nix profile install nixpkgs#devenv
- name: Test
run: devenv tasks run ${{ matrix.task }}
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() && matrix.artifact }}
with:
name: playwright-report
path: web/playwright-report/