Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
build-test:
name: Build Test
runs-on: ubuntu-latest
if: github.event_name == 'pull_request' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/trunk'
# if: github.event_name == 'pull_request' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/trunk'
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
22 changes: 16 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ on:
branches: ['**'] # Run on PRs from any branch

permissions:
contents: write
packages: write
contents: read

jobs:
tests:
Expand All @@ -24,21 +23,32 @@ jobs:
name: Docker Build
uses: ./.github/workflows/docker.yml
needs: [tests]
permissions:
contents: read
packages: write

functional-tests:
name: Functional Tests
uses: ./.github/workflows/functional-tests.yml
needs: [build]

integration-tests:
name: Integration Tests
uses: ./.github/workflows/integration-tests.yml
cli-integration-tests:
name: CLI Integration Tests
uses: ./.github/workflows/cli-integration-tests.yml
needs: [build]

daemon-integration-tests:
name: Daemon Integration Tests
uses: ./.github/workflows/daemon-integration-tests.yml
needs: [build]

release:
name: Release
uses: ./.github/workflows/release.yml
needs: [build, functional-tests, integration-tests]
needs: [build, functional-tests, cli-integration-tests, daemon-integration-tests]
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/trunk'
permissions:
contents: write
packages: write
secrets:
PUSH: ${{ secrets.PUSH }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Integration Tests
name: CLI Integration Tests

on:
workflow_call:
Expand Down Expand Up @@ -33,13 +33,11 @@ jobs:
run: |
./stamusctl compose init tests --default
./stamusctl compose up -d
CID=$(docker compose -f config/docker-compose.yaml ps -q nginx)
docker inspect "$CID" | jq -e '.[0].HostConfig.RestartPolicy.Name == "unless-stopped"'
docker inspect nginx | jq -e '.[0].HostConfig.RestartPolicy.Name == "unless-stopped"'
./stamusctl compose down
./stamusctl config set globals.restartmode=always
./stamusctl compose up -d
CID=$(docker compose -f config/docker-compose.yaml ps -q nginx)
docker inspect "$CID" | jq -e '.[0].HostConfig.RestartPolicy.Name == "always"'
docker inspect nginx | jq -e '.[0].HostConfig.RestartPolicy.Name == "always"'

test-config-get-keys:
name: Test Config Get Keys
Expand Down
Loading
Loading