-
Notifications
You must be signed in to change notification settings - Fork 0
82 lines (75 loc) · 2.42 KB
/
Copy pathci.yml
File metadata and controls
82 lines (75 loc) · 2.42 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
75
76
77
78
79
80
81
82
name: CI
on:
pull_request:
push:
branches: main
jobs:
test:
strategy:
matrix:
runner:
- ubuntu-latest
- macOS-latest
fail-fast: false
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v7
- uses: ./
with:
github-app-id: ${{ vars.FRECKLE_AUTOMATION_APP_ID }}
github-private-key: ${{ secrets.FRECKLE_AUTOMATION_PRIVATE_KEY }}
- run: platform version
- run: stackctl version
test-defaults:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- run: rm .platform.yaml # so it'll be downloaded
- id: setup
uses: ./
with:
github-app-id: ${{ vars.FRECKLE_AUTOMATION_APP_ID }}
github-private-key: ${{ secrets.FRECKLE_AUTOMATION_PRIVATE_KEY }}
- uses: bats-core/bats-action@4.0.0
with:
support-path: /usr/lib/bats/bats-support
assert-path: /usr/lib/bats/bats-assert
- run: bats test/defaults.bats
env:
GH_EVENT_NAME: ${{ github.event_name }}
GH_PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
GH_PUSH_SHA: ${{ github.event.after }}
GH_SHA: ${{ github.sha }}
TAG: ${{ steps.setup.outputs.tag }}
test-configured:
runs-on: ubuntu-latest
env:
# Dummy env so the older CLI versions don't fail on initialization. Once a
# non-latest version has that fix, we can update here and remove this.
AWS_ACCESS_KEY_ID: x
AWS_SECRET_ACCESS_KEY: x
steps:
- uses: actions/checkout@v7
- id: setup
uses: ./
with:
github-app-id: ${{ vars.FRECKLE_AUTOMATION_APP_ID }}
github-private-key: ${{ secrets.FRECKLE_AUTOMATION_PRIVATE_KEY }}
version: "2.1.0.0"
app-directory: my-app
environment: dev
resource: my-resource
no-validate: "1"
stackctl-version: "1.4.0.0"
fetch-platform-yaml: false
- uses: bats-core/bats-action@4.0.0
with:
support-path: /usr/lib/bats/bats-support
assert-path: /usr/lib/bats/bats-assert
- run: bats test/configured.bats
env:
GH_EVENT_NAME: ${{ github.event_name }}
GH_PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
GH_PUSH_SHA: ${{ github.event.push.after }}
GH_SHA: ${{ github.sha }}
TAG: ${{ steps.setup.outputs.tag }}