-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (36 loc) · 964 Bytes
/
tests.yaml
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
---
name: tests
on:
pull_request:
types: [assigned, opened, synchronize, reopened, ready_for_review]
jobs:
go_test:
# strategy:
# matrix:
# go-versions: [1.18.x]
# os: [ubuntu-latest, macos-latest]
# runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: set up go version
uses: actions/setup-go@v3
with:
# go-version: ${{ matrix.go-versions }}
go-version: '1.20'
- name: run go tests
run: |
go test -v ./...
golangci:
# https://github.com/golangci/golangci-lint-action
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.53
# use config in .golangci.yaml to configure the action further