This repository has been archived by the owner on Oct 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
93 lines (82 loc) · 2 KB
/
acctest.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: Acceptance Tests
on:
pull_request:
paths-ignore:
- "LICENSE"
- "**.md"
- "docs/**"
push:
paths-ignore:
- "LICENSE"
- "**.md"
- "docs/**"
schedule:
- cron: "0 13 * * *"
jobs:
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: "1.17"
id: go
- name: Check out code into the Go module directory
uses: actions/[email protected]
- name: Get dependencies
run: make download
- name: Build
run: make build
test:
name: Matrix Test
needs: build
runs-on: ubuntu-latest
timeout-minutes: 240
strategy:
fail-fast: false
matrix:
version:
- stable
terraform:
- "0.12.29"
- "0.13.4"
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: "1.17"
id: go
- name: Check out code into the Go module directory
uses: actions/[email protected]
- name: Get dependencies
run: make download
- name: Start Tinkerbell server
run: make test-up
- name: TF acceptance tests
timeout-minutes: 120
env:
TF_ACC_TERRAFORM_VERSION: ${{ matrix.terraform }}
run: make testacc
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.46
codespell:
name: Codespell
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Codespell
uses: codespell-project/actions-codespell@master
with:
check_filenames: true
check_hidden: true