Repository navigation
74 lines (68 loc) · 1.9 KB
/
Copy pathci.yaml
File metadata and controls
74 lines (68 loc) · 1.9 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
name: CI Workflow
on:
pull_request:
workflow_dispatch:
push:
branches:
- main
permissions: {}
env:
GO_VERSION: "1.26"
DOTNET_VERSION: 9.0.x
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_VERSION: 20.x
PYTHON_VERSION: "3.11"
jobs:
zizmor:
name: zizmor
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Run zizmor
uses: zizmorcore/zizmor-action@45d7276c9ca790aabd705e31ca99c6185c3e76dd # v0.8.1
with:
version: v1.32.0
advanced-security: false # Fail on findings instead of uploading SARIF.
annotations: true
main:
name: CI
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go Tools
uses: $/.github/actions/gotools
with:
go-version: ${{ env.GO_VERSION }}
- name: Install Pulumi Tools
uses: $/.github/actions/pulumitools
- name: Build sdks
run: make generate_sdks
- name: Lint provider
run: make lint_provider
- name: Execute tests
run: make test
config:
name: Check GoReleaser config
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Check GoReleaser
uses: goreleaser/goreleaser-action@a4f02ab5355a589de60d917a659ce617ed19b3de # v7.3.0
with:
args: check