Skip to content

Commit 26fa993

Browse files
committed
tests workflow
1 parent 41ba604 commit 26fa993

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/test.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Tests
2+
on: push:
3+
4+
jobs:
5+
golangci:
6+
name: lint
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: golangci-lint
11+
uses: golangci/golangci-lint-action@v2.3.0
12+
with:
13+
version: v1.34
14+
args: --timeout=2m
15+
test:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: install Go
19+
uses: actions/setup-go@v2
20+
with:
21+
go-version: 1.15.x
22+
- name: checkout code
23+
uses: actions/checkout@v2
24+
- uses: actions/cache@v2
25+
with:
26+
path: ~/go/pkg/mod
27+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
28+
restore-keys: |
29+
${{ runner.os }}-go-
30+
- name: golang tests
31+
env:
32+
GO111MODULE: on
33+
BCD_ENV: production
34+
run: |
35+
go mod download
36+
go test ./...

0 commit comments

Comments
 (0)