-
Notifications
You must be signed in to change notification settings - Fork 7
49 lines (45 loc) · 1.15 KB
/
examples.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
name: Examples smoke tests
on:
workflow_dispatch:
push:
branches: [ 'main', 'develop' ]
paths:
- 'examples/**'
pull_request:
branches: [ 'main', 'develop' ]
paths:
- 'examples/**'
env:
PULUMI_CONFIG_PASSPHRASE: 'passphrase'
PULUMI_SKIP_UPDATE_CHECK: 'true'
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
preview:
if: "! github.event.pull_request.head.repo.fork"
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
steps:
- uses: actions/checkout@v4
- uses: extractions/setup-just@v1
with:
just-version: '1.14.0' # just for sanity
- uses: pulumi/actions@v4
with:
pulumi-version: '3.94.2'
- uses: coursier/[email protected]
- uses: VirtusLab/[email protected]
with:
jvm: graalvm-java17:22.3.3
power: true
- name: Login in to pulumi
run: pulumi login --local
- name: Test examples
env:
AWS_EC2_METADATA_DISABLED: true
run: |-
just test-examples