test the current branch by building ziti and the quickstart container

image and running in compose and running quickstart_test.go
This commit is contained in:
Kenneth Bingham
2023-08-25 18:44:24 -04:00
parent 916d07c702
commit 2910014ee9
2 changed files with 185 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
name: Test Quickstart
on:
workflow_dispatch:
# test quickstart changes after merge
push:
branches:
- release-next
- main
paths:
- 'quickstart/**'
# test quickstart changes before merge
pull_request:
paths:
- 'quickstart/**'
# cancel older, redundant runs of same workflow on same branch
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
jobs:
compose-test:
name: Test Compose Quickstart
runs-on: ubuntu-latest
steps:
- name: Shallow checkout
uses: actions/checkout@v3
- name: Install zsh
run: sudo apt-get update && sudo apt-get install --yes zsh
- name: Build and run a quickstart container image
run: ./quickstart/test/compose-test.zsh