-
Notifications
You must be signed in to change notification settings - Fork 86
68 lines (58 loc) · 1.47 KB
/
tests.yaml
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
name: Tests
on:
push:
branches: ['*']
tags: ['v*']
pull_request:
branches: ['**']
jobs:
test:
runs-on: ubuntu-latest
env:
GOPATH: ${{ github.workspace }}
GOBIN: ${{ github.workspace }}/bin
defaults:
run:
working-directory: ${{ env.GOPATH }}/src/github.com/${{ github.repository }}
strategy:
matrix:
go: ["stable", "oldstable"]
include:
- go: "stable"
latest: true
COVERAGE: "yes"
LINT: "yes"
- go: "oldstable"
LINT: "yes"
steps:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Checkout code
uses: actions/checkout@v2
with:
path: ${{ env.GOPATH }}/src/github.com/${{ github.repository }}
- name: Load cache
uses: actions/cache@v1
with:
path: ~/.glide/cache
key: ${{ runner.os }}-go-${{ hashFiles('**/glide.lock') }}
restore-keys: |
${{ runner.os }}-go-
- name: Install CI
run: make install_ci
- name: Test CI
env:
NO_TEST: ${{ matrix.NO_TEST }}
run: test -n "$NO_TEST" || make test_ci
- name: Cover CI
env:
COVERAGE: ${{ matrix.COVERAGE }}
run: test -z "$COVERAGE" || make cover_ci
- name: Lint CI
env:
LINT: ${{ matrix.LINT }}
run: test -z "$LINT" || make install_lint lint
- name: Crossdock CI
run: make crossdock_logs_ci