-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (41 loc) · 1.16 KB
/
ci.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
on: [push, pull_request]
name: Run tests
jobs:
test:
strategy:
matrix:
go-version: [1.17.x]
platform: [ubuntu-latest, macos-latest] # window-latest does not work yet
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Download dependencies
run: |
go mod download
go mod tidy -v
- name: Vet
if: matrix.platform == 'ubuntu-latest'
run: make vet
- name: fmt
if: matrix.platform == 'ubuntu-latest'
run: make fmt
- name: Test
run: make test
- name: Tests with localstack
if: matrix.platform == 'ubuntu-latest'
env:
AWS_REGION: us-west-1
AWS_ACCESS_KEY_ID: test
AWS_SECRET_ACCESS_KEY: test
run: make test_with_localstack