Skip to content

Commit

Permalink
Merge pull request #7 from cloud-bees/feat/github-action
Browse files Browse the repository at this point in the history
ci: update daily test workflow
  • Loading branch information
NguyenTriMan authored Sep 29, 2024
2 parents 4abf9e5 + 3345ed5 commit 588ddd5
Showing 1 changed file with 24 additions and 5 deletions.
29 changes: 24 additions & 5 deletions .github/workflows/daily-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
workflow_dispatch:

jobs:
build:
python-devcontainer:
runs-on: ubuntu-latest

steps:
Expand All @@ -19,12 +19,31 @@ jobs:
run: |
npm install -g @devcontainers/cli
- name: Build and Test DevContainer
- name: Spin up Python DevContainer
run: |
devcontainer build .
devcontainer up --workspace-folder .
devcontainer up --workspace-folder . --config .devcontainer/python/devcontainer.json
# Optional - Run a simple command inside the container to verify
- name: Verify DevContainer Functionality
run: |
devcontainer exec --workspace-folder . echo "DevContainer is working!"
devcontainer exec --workspace-folder . --config .devcontainer/python/devcontainer.json python --version
terraform-devcontainer:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install DevContainer CLI
run: |
npm install -g @devcontainers/cli
- name: Spin up Terraform DevContainer
run: |
devcontainer up --workspace-folder . --config .devcontainer/terraform/devcontainer.json
# Optional - Run a simple command inside the container to verify
- name: Verify DevContainer Functionality
run: |
devcontainer exec --workspace-folder . --config .devcontainer/terraform/devcontainer.json terraform --version

0 comments on commit 588ddd5

Please sign in to comment.