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