forked from go-graphite/carbonapi
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (41 loc) · 1.01 KB
/
tests.yml
File metadata and controls
49 lines (41 loc) · 1.01 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
name: Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
tests:
name: Test code
runs-on: ubuntu-latest
strategy:
matrix:
go:
- ^1.15
- ^1.16
- ^1.17
- ^1
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Check out code into the Go module directory
uses: actions/checkout@v2
with:
fetch-depth: 200
- name: Install packaging dependencies
run: |
sudo apt-get install libcairo2-dev mercurial pkg-config wget -y
- name: Test
run: |
make test
make
./e2e_test.sh
- name: Check packaging
if: matrix.go == 'some-build-trigger' # TODO
env:
BUILD_PACKAGES: true
run: |
wget "https://raw.githubusercontent.com/go-graphite/helper-scripts/main/travis-docker-build.sh" && chmod +x ./travis-docker-build.sh
./travis-docker-build.sh carbonapi