-
-
Notifications
You must be signed in to change notification settings - Fork 360
53 lines (40 loc) · 986 Bytes
/
test.yml
File metadata and controls
53 lines (40 loc) · 986 Bytes
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
name: Tests
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
permissions:
contents: read
jobs:
test-frontend:
runs-on: ubuntu-latest
steps:
- name: Setup repo
uses: actions/checkout@v3
with:
fetch-depth: 0
fetch-tags: true
- name: Setup Deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.6.8
- name: Run build
run: deno task build
- name: Run checks
run: deno task checks
test-go:
runs-on: ubuntu-latest
steps:
- name: Setup repo
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.25"
- name: Run Go tests
run: go test ./server/... -v
- name: Run Go tests with coverage
run: go test ./server/... -coverprofile=coverage.out
- name: Display test coverage
run: go tool cover -func=coverage.out