-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (43 loc) · 1.17 KB
/
main.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
50
51
52
name: Make Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Run check
run: |
uname -a
ls -lah
sudo apt-get update
sudo apt-get install -y libsystemd-dev libzmq3-dev
sudo apt install pkg-config
wget https://github.com/boschrexroth/ctrlx-automation-sdk/releases/download/2.2.0/ctrlx-datalayer-2.2.7.deb
sudo apt-get install -y -f ./ctrlx-datalayer-2.2.7.deb
- name: Go
uses: actions/setup-go@v2
with:
go-version: 1.18
- name: Test
run: |
go mod download
go mod vendor
go mod tidy
go test -race -short -count=1 -mod=vendor ./test/datalayer ./test/sseclient ./test/token
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
- name: Run go test
run: |
ls -lah
go mod download
go mod vendor
go test -race -short -count=1 -mod=vendor ./test/datalayer ./test/sseclient ./test/token