-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (41 loc) · 1.04 KB
/
go.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
53
name: Go
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
inputs:
tags:
description: 'Test scenario tags'
required: false
type: boolean
jobs:
build:
name: Build
runs-on: ubuntu-20.04
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.18.0
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Install dbus
run: |
sudo apt update
sudo apt install dbus dbus-x11 -y
- name: Install python3
run: sudo apt install python3 python3-setuptools python3-pip -y
- name: Install dependencies
run: |
pip3 install --upgrade pip
if [ -f requirements.txt ]; then pip3 install -r requirements.txt; fi
- name: Generate
run: go generate -v ./...
- name: Get dependencies
run: go get -v -t -d ./...
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...