-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (49 loc) · 1.69 KB
/
pull-request.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: CI
on:
workflow_dispatch: {}
pull_request: {}
# When a new revision is pushed to a PR, cancel all in-progress CI runs for that
# PR. See https://docs.github.com/en/actions/using-jobs/using-concurrency
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test-e2e:
name: Test E2E
runs-on: ubuntu-22.04
environment: ci
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: pull libraries from DAS
run: |
docker run --name eopa-pull \
-w /tmp \
-e EOPA_STYRA_DAS_TOKEN \
ghcr.io/styrainc/enterprise-opa:latest pull --url=https://expo.styra.com
docker cp eopa-pull:/tmp/.styra .styra
docker rm -f eopa-pull
env:
EOPA_LICENSE_KEY: ${{ secrets.EOPA_LICENSE_KEY }}
STYRA_DAS_SYSTEM: af5120e033934478bd6dcbd8bfca0c84
EOPA_STYRA_DAS_TOKEN: ${{ secrets.STYRA_DAS_TOKEN }}
STYRA_DAS_TENANT: expo
- name: setup
run: docker compose --profile ci up --quiet-pull --wait --wait-timeout 300
env:
EOPA_LICENSE_KEY: ${{ secrets.EOPA_LICENSE_KEY }}
STYRA_DAS_SYSTEM: af5120e033934478bd6dcbd8bfca0c84
STYRA_DAS_TOKEN: ${{ secrets.STYRA_DAS_TOKEN }}
STYRA_DAS_TENANT: expo
- name: test
run: docker compose run --quiet-pull integration-tests
- name: dump logs
run: docker compose logs
if: failure()
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: always()
with:
report_paths: test/report.xml