forked from digitalocean/terraform-provider-digitalocean
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (31 loc) · 760 Bytes
/
test.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
name: Tests
# Runs unit and acceptance tests for pull requests and pushes to main.
on:
pull_request:
push:
branches:
- main
jobs:
unit:
# Runs `go vet` and unit tests.
strategy:
matrix:
go-version: [1.20.x, 1.21.x]
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout
uses: actions/checkout@v2
- name: make vet
run: make vet
- name: Lint with golangci-lint
uses: golangci/golangci-lint-action@v3
with:
only-new-issues: true
- name: Run terrafmt
run: make terrafmt-check
- name: make test
run: make test