-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (49 loc) · 1.26 KB
/
test.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
name: app
run-name: ${{ github.actor }} is running pipeline
on: [push]
jobs:
setup:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Install system dependencies
uses: actions/setup-go@v4
with:
go-version: '>=1.20.0'
- name: Install custom dependencies
run: make install-swaggo
- name: Upload dependencies
uses: actions/upload-artifact@v3
with:
name: dependencies
path: ./vendor
tests:
runs-on: ubuntu-latest
steps:
- name: Download dependencies
uses: actions/download-artifact@v3
with:
name: dependencies
- name: Run tests
run: make test
needs: [setup]
builds:
runs-on: ubuntu-latest
steps:
- name: Download dependencies
uses: actions/download-artifact@v3
with:
name: dependencies
- name: Generate Swagger documentation
run: |
go env GOBIN;
go env GOPATH;
go env GOROOT;
export PATH=${PATH}:$(go env GOPATH)/bin;
make docs-swaggo;
- name: Verify binary build
run: make binary
- name: Verify image build
run: make image
needs: [setup]