Skip to content

Merge pull request #17 from DefangLabs/lio/add-command-arg #153

Merge pull request #17 from DefangLabs/lio/add-command-arg

Merge pull request #17 from DefangLabs/lio/add-command-arg #153

Workflow file for this run

name: test
on:
push:
branches:
- main
pull_request:
branches:
- '**'
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"
mode: ""
command: "compose up --dry-run"
env:
DEFANG_GH_ACTION_TEST_MESSAGE: ${{ secrets.MESSAGE }}
- name: Deploy-Empty-Params
uses: ./
continue-on-error: true # Ignore dry run error
with:
config-env-vars: ""
cwd: "./test"
compose-files: ""
mode: "staging"
command: "compose up --dry-run --project-name github-action-test"
- name: Teardown
run: defang config rm DEFANG_GH_ACTION_TEST_MESSAGE