-
Notifications
You must be signed in to change notification settings - Fork 162
73 lines (59 loc) · 1.83 KB
/
pull_requests.yml
File metadata and controls
73 lines (59 loc) · 1.83 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Run tests
on:
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@master
with:
ref: ${{ github.ref }}
- run: ./scripts/ci/prepare_linux.sh
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
args: --timeout=3m --verbose
- run: go test -race -cover
- run: gofmt -w -s .
- run: ./scripts/fail_on_diff.sh
dsq-tests-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
ref: ${{ github.ref }}
- run: ./scripts/ci/prepare_linux.sh
- run: go build -trimpath -buildmode=pie -mod=readonly -modcacherw
- name: Test defaults
run: ./scripts/test.py
- name: Test without SQLite writer
run: DSQ_NO_SQLITE_WRITER=true ./scripts/test.py
dsq-tests-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@master
with:
ref: ${{ github.ref }}
- run: ./scripts/ci/prepare_windows.ps1
shell: pwsh
- run: go build -trimpath -buildmode=pie -mod=readonly -modcacherw
- run: ./scripts/test.py
shell: bash
# Subtle behavioral differences between powershell/cmd and bash. For example nested double quotes must be escaped.
- name: Test with powershell
run: python3 ./scripts/test.py
shell: powershell
- name: Test with cmd.exe
run: python3 ./scripts/test.py
shell: cmd
dsq-tests-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@master
with:
ref: ${{ github.ref }}
- run: ./scripts/ci/prepare_macos.sh
- run: go build -trimpath -buildmode=pie -mod=readonly -modcacherw
- run: ./scripts/test.py