-
Notifications
You must be signed in to change notification settings - Fork 82
40 lines (33 loc) · 904 Bytes
/
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
name: Go
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.13', '1.14', '1.18' ]
dir: [ './azuredevops', './azuredevops/v6', './azuredevops/v7']
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Setup go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
id: go
- name: Get dependencies
working-directory: ${{ matrix.dir }}
run: go get github.com/google/uuid
- name: go build
working-directory: ${{ matrix.dir }}
run: go build -v ./...
- name: go fmt
working-directory: ${{ matrix.dir }}
run: go fmt ./...
- name: go vet
working-directory: ${{ matrix.dir }}
run: go vet ./...
- name: go test
working-directory: ${{ matrix.dir }}
run: go test ./...