-
-
Notifications
You must be signed in to change notification settings - Fork 62
43 lines (39 loc) · 884 Bytes
/
test-go.yml
File metadata and controls
43 lines (39 loc) · 884 Bytes
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
name: test-go
permissions: {}
on:
push:
branches:
- main
- renovate/**
pull_request:
branches:
- main
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
go: ['1.18.x']
include:
- os: windows-latest
go: '1.18.x'
- os: macos-latest
go: '1.18.x'
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version: ${{ matrix.go }}
cache-dependency-path: go/go.sum
- name: lint
working-directory: go
run: gofmt -w .
- name: test
working-directory: go
run: go test ./...