-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (45 loc) · 1.07 KB
/
test.yaml
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
name: test
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Deploy
uses: ./
continue-on-error: true # Ignore dry run error
with:
cli-version: v0.5.40
config-env-vars: "DEFANG_GH_ACTION_TEST_MESSAGE"
cwd: "./test"
compose-files: "compose.yaml compose.prod.yaml"
behavior: "staging"
env:
DEFANG_GH_ACTION_TEST_MESSAGE: ${{ secrets.MESSAGE }}
DEFANG_INTERNAL_TEST: dfng-test
- name: Deploy-Empty-Params
uses: ./
continue-on-error: true # Ignore dry run error
with:
cli-version: v0.5.40
config-env-vars: ""
cwd: "./test"
compose-files: ""
behavior: ""
env:
DEFANG_INTERNAL_TEST: dfng-test
- name: Teardown
run: defang config rm DEFANG_GH_ACTION_TEST_MESSAGE