From 3daa27df96582daa1bb17d16068f6cc32f38b282 Mon Sep 17 00:00:00 2001 From: Jim Madge Date: Fri, 9 Aug 2024 20:13:28 +0100 Subject: [PATCH] Add test workflow --- .github/workflows/test.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..5d2033d --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,28 @@ +name: test + +on: + pull_request: + push: + branches: ["main"] + +jobs: + test: + name: Integration tests + runs-on: ubuntu-latest + + steps: + - name: Check out the repository + uses: actions/checkout@v4 + + - name: Build container image + run: docker build -t nexus_allowlist:latest . + + - name: Start service + run: docker compose up -d + + - name: Wait for Nexus to start + run: sleep 60 + + - name: Run tests + working-directory: integration_tests + run: test.sh