-
Notifications
You must be signed in to change notification settings - Fork 3
48 lines (46 loc) · 1.03 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
name: Build and test
on:
pull_request:
branches:
- "**"
push:
branches:
- "main"
- "release/v[0-9]**"
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}-build
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Setup Golang
uses: actions/setup-go@v4
with:
go-version: "^1.20"
- name: Display go version
run: go version
- name: Run all tests
run: make test-all
- uses: technote-space/[email protected]
id: git_diff
with:
PATTERNS: |
**/*.go
go.mod
go.sum
**/go.mod
**/go.sum
**/Makefile
Makefile
###################
#### Build App ####
###################
- name: Build demo app # to ensure everything compiles
if: env.GIT_DIFF
run: make build