generated from pulumi/pulumi-tf-provider-boilerplate
-
-
Notifications
You must be signed in to change notification settings - Fork 14
133 lines (116 loc) · 3.06 KB
/
verify.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
---
name: Verify
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
permissions:
contents: read
pull-requests: read
env:
PROVIDER: proxmoxve
GO111MODULE: "on"
jobs:
conform:
runs-on: ubuntu-latest
name: Conform
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: siderolabs/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
provider:
runs-on: ubuntu-latest
name: Lint Provider
strategy:
max-parallel: 4
matrix:
go-version: [1.20.x]
golangci-lint-version: [v1.52.1]
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: "${{ matrix.go-version }}"
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
repo: pulumi/pulumictl
- name: Install Pulumi CLI
uses: pulumi/actions@v4
- name: Build Provider
run: make provider
- name: Lint Provider
uses: golangci/golangci-lint-action@v3
with:
version: "${{ matrix.golangci-lint-version }}"
working-directory: provider
args: -c ../.golangci.yml
skip-pkg-cache: true
skip-build-cache: true
sdk:
runs-on: ubuntu-latest
name: Build SDK
strategy:
max-parallel: 10
matrix:
go-version: [1.20.x]
node-version: [18.x]
dotnet-version: [3.1.301]
python-version: [3.9]
java-version: [11]
language:
- go
- nodejs
- python
- dotnet
- java
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: "${{ matrix.go-version }}"
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
repo: pulumi/pulumictl
- name: Install Pulumi CLI
uses: pulumi/actions@v4
- name: Setup DotNet
uses: actions/setup-dotnet@v3
with:
dotnet-version: "${{ matrix.dotnet-version }}"
if: matrix.language == 'dotnet'
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "${{ matrix.python-version }}"
if: matrix.language == 'python'
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "${{ matrix.node-version }}"
if: matrix.language == 'nodejs'
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: corretto
java-version: ${{ matrix.java-version }}
if: matrix.language == 'java'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
if: matrix.language == 'java'
- name: Build SDK
run: make build_${{ matrix.language }}