-
Notifications
You must be signed in to change notification settings - Fork 1
102 lines (75 loc) · 1.99 KB
/
test.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
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name: Test
on:
push:
workflow_call:
defaults:
run:
shell: bash -l {0}
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup development environment
uses: ./.github/actions/setup-env
- name: Start background services
run: dev &
- name: Build Go binaries
run: make build
- name: Run Go tests
run: make test
test-fuzz:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup development environment
uses: ./.github/actions/setup-env
- name: Start background services
run: dev &
- name: Build Go binaries
run: make build
- name: Setup DateiLager project
run: make setup-local
- name: Start DateiLager server
run: make server &
- name: Wait for DateiLager server
run: sleep 5
- name: Run fuzz tests
run: make test-fuzz
test-js:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup development environment
uses: ./.github/actions/setup-env
- name: Start background services
run: dev &
- name: Build Go binaries
run: make build
- name: Setup DateiLager project
run: make setup-local
- name: Start DateiLager server
run: make server &
- name: Wait for DateiLager server
run: sleep 5
- name: Run JS tests
run: make test-js
- name: Run JS lints
run: make lint-js
golangci:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: "1.22"
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v5
with:
version: latest
args: --timeout=2m