-
Notifications
You must be signed in to change notification settings - Fork 4
122 lines (105 loc) · 2.71 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
---
name: Verify
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
permissions:
contents: read
pull-requests: read
env:
PROVIDER: buildkite
GO111MODULE: "on"
jobs:
conform:
runs-on: ubuntu-latest
name: Conform
steps:
- uses: actions/checkout@v4
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.21.x]
golangci-lint-version: [v1.54.2]
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: "${{ matrix.go-version }}"
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
repo: pulumi/pulumictl
- name: Install Pulumi CLI
uses: pulumi/actions@v5
- name: Build Provider
run: make provider
- name: Lint Provider
uses: golangci/golangci-lint-action@v5
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: 4
matrix:
go-version: [1.21.x]
node-version: [18.x]
dotnet-version: [3.1.301]
python-version: [3.9]
language:
- go
- nodejs
- python
- dotnet
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: "${{ matrix.go-version }}"
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
repo: pulumi/pulumictl
- name: Install Pulumi CLI
uses: pulumi/actions@v5
- name: Setup DotNet
uses: actions/setup-dotnet@v4
with:
dotnet-version: "${{ matrix.dotnet-version }}"
if: matrix.language == 'dotnet'
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "${{ matrix.python-version }}"
if: matrix.language == 'python'
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "${{ matrix.node-version }}"
if: matrix.language == 'nodejs'
- name: Build SDK
run: make build_${{ matrix.language }}