-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (43 loc) · 1.34 KB
/
test-esco-api-dashboard.yml
File metadata and controls
54 lines (43 loc) · 1.34 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
name: Preview and run tests on esco-api dashboard
on:
pull_request:
paths:
- esco-api-dashboard/**
env:
PULUMI_ORGANIZATION: virtualfinland
AWS_REGION: eu-north-1
permissions:
id-token: write
contents: read
jobs:
preview-and-test:
name: Preview and run tests
runs-on: ubuntu-latest
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
defaults:
run:
working-directory: esco-api-dashboard
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "16.x"
cache: npm
cache-dependency-path: esco-api-dashboard/package-lock.json
- name: Configure AWS credentials
uses: Virtual-Finland-Development/infrastructure/.github/actions/configure-aws-credentials@main
with:
environment: dev
aws-region: ${{ env.AWS_REGION }}
pulumi-access-token: ${{ secrets.PULUMI_ACCESS_TOKEN }}
- name: Install Pulumi CLI
uses: pulumi/actions@v5
- name: Install dependencies
run: npm ci
- name: Select stack
run: pulumi stack select ${{ env.PULUMI_ORGANIZATION }}/dev --create
- name: Set organization to config
run: pulumi config set org ${{ env.PULUMI_ORGANIZATION }}
- name: Preview Pulumi stack
run: pulumi preview