-
Notifications
You must be signed in to change notification settings - Fork 0
80 lines (66 loc) · 1.96 KB
/
ci.yaml
File metadata and controls
80 lines (66 loc) · 1.96 KB
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
name: CI Workflow
on:
pull_request:
workflow_dispatch:
push:
branches:
- main
permissions:
contents: write
id-token: write
env:
GO_VERSION: "1.24"
DOTNET_VERSION: 3.1.301
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_VERSION: 20.x
PYTHON_VERSION: "3.9"
jobs:
main:
name: CI
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install pulumictl
uses: jaxxstorm/action-install-gh-release@6096f2a2bbfee498ced520b6922ac2c06e990ed2 # tag=v2.1.0
with:
repo: pulumi/pulumictl
- name: Install pulumi
uses: pulumi/actions@v4
- name: Install Go Tools
uses: ./.github/actions/gotools
with:
go-version: ${{ env.GO_VERSION }}
- name: Install libssl
run: sudo apt-get install -y libssl-dev
# - name: Setup Node
# uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # tag=v4.4.0
# with:
# node-version: ${{ env.NODE_VERSION }}
- name: Setup DotNet
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # tag=v2.1.0
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
# - name: Setup Python
# uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # tag=v5.6.0
# with:
# python-version: ${{ env.PYTHON_VERSION }}
# - name: Build sdks
# run: make generate_sdks
- name: Build dotnet
run: make build_dotnet
- name: Lint
run: make lint_provider
config:
name: Check GoReleaser config
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
args: check