From a9906addff425745d8386858525e1cd15d2d3633 Mon Sep 17 00:00:00 2001 From: jamesread Date: Wed, 4 Oct 2023 22:06:54 +0100 Subject: [PATCH] cicd: start/stop server for integration tests, update checkout action --- .github/workflows/build-snapshot.yml | 7 ++++++- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/codestyle.yml | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-snapshot.yml b/.github/workflows/build-snapshot.yml index 00b48fb..c389669 100644 --- a/.github/workflows/build-snapshot.yml +++ b/.github/workflows/build-snapshot.yml @@ -42,12 +42,17 @@ jobs: - name: unit tests run: make daemon-unittests + - name: run OliveTin for integration tests + run: OliveTin & + - name: integration tests uses: cypress-io/github-action@v6 with: - start: ./../OliveTin working-directory: integration-tests + - name: kill OliveTin after integration tests + run: killall OliveTin + - name: goreleaser uses: goreleaser/goreleaser-action@v4.2.0 with: diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index c35b025..9d70349 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -42,7 +42,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/codestyle.yml b/.github/workflows/codestyle.yml index 04cb053..0319a3a 100644 --- a/.github/workflows/codestyle.yml +++ b/.github/workflows/codestyle.yml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup Go uses: actions/setup-go@v3