-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (41 loc) · 1.22 KB
/
test.yml
File metadata and controls
43 lines (41 loc) · 1.22 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
name: Run Tests
on:
pull_request:
branches:
- main
env:
TEST_ENVIRONMENT: dev
jobs:
build-and-test:
name: Build and test
uses: ./.github/workflows/build-and-test.yml
secrets: inherit
preview-pulumi:
name: Preview Pulumi
runs-on: ubuntu-latest
needs: build-and-test
permissions:
id-token: write
contents: read
steps:
- name: Install Pulumi CLI
uses: pulumi/actions@v5
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: Application_Artifacts
path: ./build-artifacts
- name: Configure AWS credentials
uses: Virtual-Finland-Development/infrastructure/.github/actions/configure-aws-credentials@main
with:
environment: ${{ env.TEST_ENVIRONMENT }}
aws-region: ${{ secrets.AWS_REGION }}
pulumi-access-token: ${{ secrets.PULUMI_ACCESS_TOKEN }}
- name: Pulumi preview
uses: pulumi/actions@v5
with:
work-dir: ./VirtualFinland.UsersAPI.Deployment
command: preview
stack-name: ${{ secrets.PULUMI_ORGANIZATION }}/${{ env.TEST_ENVIRONMENT }}
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}