-
Notifications
You must be signed in to change notification settings - Fork 11
58 lines (58 loc) · 1.38 KB
/
build-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
54
55
56
57
58
---
name: Build and Test
on:
push:
branches:
- main
tags:
- v*
pull_request:
schedule:
- cron: '7 3 * * *'
jobs:
pre-commit:
name: Pre commit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
- uses: actions/setup-python@v3
- uses: pre-commit/[email protected]
chack_license:
name: Check license
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Check license in project files
run: ./scripts/check-license.sh
shell: bash
test:
name: Unit tests
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
- name: Install tools
run: |
sudo apt-get update
sudo apt-get install ansible
sudo apt-get install gdb
sudo apt-get install python3
- name: integration bash tests
run: ./testing/integrate.sh
shell: bash
integration_test:
name: Integration tests
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
- name: integration tests
run: INTEGRATION_TEST=yes go test -run "^TestIntegration.*$" ./...
shell: bash