-
Notifications
You must be signed in to change notification settings - Fork 5
53 lines (40 loc) · 1.1 KB
/
test.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
name: Test, Lint, Build
on: [push]
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.20.x'
- name: Setup Golang caches
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-golang-
- name: Test
run: make test
# - name: Lint
# run: make lint
- name: Build server and client
run: make build
- name: Cache Docker images.
uses: ScribeMD/[email protected]
with:
key: docker-${{ runner.os }}-${{ hashFiles('docker-compose.yaml') }}
- name: Start Docker Compose with MongoDB and Tyk Mserv
run: make start
- name: Build and bundle plugins
run: |
make plugin
make bundles
- name: Install Venom command line tool
run: go install github.com/ovh/venom/cmd/venom@latest
- name: Run Venom tests
run: make integration