Skip to content

Commit

Permalink
Add build step to run unit and integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
plorenz committed Sep 27, 2023
1 parent 07da3cd commit 8af76e3
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,35 @@ jobs:
path: release/
retention-days: 5

tests:
name: Run Unit and Integration Tests
runs-on: ubuntu-20.04
steps:
- name: Git Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install Go
uses: actions/setup-go@v4
with:
go-version: '1.20.x'

- name: Install Ziti CI
uses: openziti/ziti-ci@v1

- name: Run Go Quickstart Test
timeout-minutes: 5
shell: bash
run: |
go test -v -tags "quickstart automated" ./ziti/cmd/edge/...;
- name: Run Unit and Integration Tests
timeout-minutes: 5
shell: bash
run: |
go test ./... --tags apitests
fablab-smoketest:
name: Fablab Smoketest
# not applicable to forks. shouldn't run on release build
Expand Down Expand Up @@ -366,7 +395,7 @@ jobs:
&& (needs.fablab-smoketest.result == 'success' || needs.fablab-smoketest.result == 'skipped')
}}
runs-on: ubuntu-20.04
needs: [ linux-build, mac-os-build, windows-build, fablab-smoketest, fablab-ha-smoketest ]
needs: [ tests, linux-build, mac-os-build, windows-build, fablab-smoketest, fablab-ha-smoketest ]
outputs:
ZITI_VERSION: ${{ steps.get_version.outputs.ZITI_VERSION }}
steps:
Expand Down

0 comments on commit 8af76e3

Please sign in to comment.