generated from pulumi/pulumi-tf-provider-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (66 loc) · 1.56 KB
/
test.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
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
name: test
on:
push:
branches:
- main
tags:
- v*.*.*
pull_request:
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: git fetch --force --tags
- uses: actions/setup-go@v5
with:
go-version: '1.21'
cache-dependency-path: '**/go.sum'
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
repo: pulumi/pulumictl
- run: make tfgen
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.55.2
working-directory: provider
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: git fetch --force --tags
- uses: actions/setup-go@v5
with:
go-version: '1.21'
cache-dependency-path: '**/go.sum'
- uses: actions/setup-node@v4
with:
node-version: "20"
- uses: actions/setup-dotnet@v4
with:
dotnet-version: "8"
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
repo: pulumi/pulumictl
- run: make provider
- name: Check for uncommitted generated files
run: |
make build_sdks
if [[ $(git status --porcelain | wc -l) != "0" ]]; then
git status
echo "did you run make build_sdks?"
exit 1
fi
- run: make test