forked from d5/tengo
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (34 loc) · 831 Bytes
/
test.yml
File metadata and controls
34 lines (34 loc) · 831 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
name: test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- name: set up Go
uses: actions/setup-go@v1
with:
go-version: 1.18
id: go
- name: set up Go module cache
uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: setup env
run: |
echo "name=GOPATH::$(go env GOPATH)" >> $GITHUB_ENV
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
shell: bash
- name: check out code
uses: actions/checkout@v2
- name: install golint
run: go install golang.org/x/lint/golint@latest
- name: run tests
run: make test