-
Notifications
You must be signed in to change notification settings - Fork 10
35 lines (34 loc) · 782 Bytes
/
ci.yml
File metadata and controls
35 lines (34 loc) · 782 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
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.17.x', '1.16.x', '1.15.x' ]
name: " Go ${{ matrix.go }}"
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Cache Go modules
uses: actions/cache@v2
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Install Go stable version
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Test
run: |
go test ./...