-
-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (41 loc) · 1015 Bytes
/
test.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
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
name: Test aws-cdk
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v5
with:
go-version-file: 'test/go.mod'
cache-dependency-path: 'test/go.sum'
- name: Install dependencies
run: go install
working-directory: test
- name: Test cdk synth without a stack name
uses: ./
with:
cdk_subcommand: "synth"
working_dir: "test"
- name: Test cdk synth using the latest version
uses: ./
with:
cdk_subcommand: "synth"
cdk_stack: "TestStack"
working_dir: "test"
- name: Test cdk synth using 2.12.0
uses: ./
with:
cdk_subcommand: "synth"
cdk_version: "2.12.0"
cdk_stack: "TestStack"
working_dir: "test"