-
Notifications
You must be signed in to change notification settings - Fork 144
53 lines (46 loc) · 1.06 KB
/
tests.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
name: Tests
on:
merge_group:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
tests:
name: Test code
runs-on: ubuntu-22.04
strategy:
matrix:
go:
- ^1.21
- ^1.22
- ^1
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Check out code into the Go module directory
uses: actions/checkout@v4
with:
fetch-depth: 200
- name: Install packaging dependencies
run: |
sudo apt-get install libcairo2-dev mercurial pkg-config wget -y
- name: Run tests
run: |
make test
make
- name: Run e2e tests
run: |
./e2e_test.sh
- name: Run config integration tests
run: |
./config_tests.sh
- name: Check packaging
if: matrix.go == '^1'
env:
BUILD_PACKAGES: false
run: |
wget "https://raw.githubusercontent.com/go-graphite/helper-scripts/main/build.sh" && chmod +x ./build.sh
./build.sh carbonapi