forked from threefoldtech/zos
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (40 loc) · 1.04 KB
/
zos-update-worker-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
name: Zos Update Worker
defaults:
run:
working-directory: tools/zos-update-worker
on:
push:
paths:
- tools/zos-update-worker/**
pull_request:
paths:
- tools/zos-update-worker/**
jobs:
Explore-Packge:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Install GO
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
args: --timeout 3m --verbose
working-directory: tools/zos-update-worker
- name: staticcheck
uses: dominikh/[email protected]
with:
version: "2022.1.3"
working-directory: tools/zos-update-worker
env:
GO111MODULE: on
- name: gofmt
uses: Jerome1337/[email protected]
with:
gofmt-flags: "-l -d"
gofmt-path: "tools/zos-update-worker"
- name: Test
run: go test -v ./...