Skip to content

Commit

Permalink
Update GitHub actions to master
Browse files Browse the repository at this point in the history
  • Loading branch information
pvannierop committed Oct 16, 2024
1 parent 7c3c192 commit c42670b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ jobs:
cp src/test/resources/config/keystore.p12 src/main/resources/config/keystore.p12
./gradlew bootRun &>mp.log </dev/null &
yarn run wait-for-managementportal
./gradlew generateOpenApiSpec
yarn e2e
./gradlew --stop
Expand Down Expand Up @@ -202,6 +203,16 @@ jobs:
org.opencontainers.image.vendor=RADAR-base
org.opencontainers.image.licenses=Apache-2.0
# # placeholder for testing
# - name: End to end tests (docker image)
# id: e2e-prod-docker
# run: |
# cp src/test/resources/config/keystore.p12 src/main/docker/etc/config
# ./gradlew -Pprod buildDocker -x test -x javadocJar
# docker-compose -f src/main/docker/app.yml up -d
# yarn run e2e-prod
# docker-compose -f src/main/docker/app.yml down -v

# Temp fix
# https://github.com/docker/build-push-action/issues/252
# https://github.com/moby/buildkit/issues/1896
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ jobs:
- name: Compile java
run: ./gradlew assemble

- name: End to end tests
- name: Run full production end to end tests
id: e2e
run: |
cp src/test/resources/config/keystore.p12 src/main/resources/config/keystore.p12
./gradlew bootRun &>mp.log </dev/null &
yarn run wait-for-managementportal
./gradlew generateOpenApiSpec
yarn e2e
docker-compose -f src/main/docker/postgresql.yml up -d
./gradlew bootRun -Pprod -Pe2e-prod-test &>mp.log </dev/null &
yarn run e2e-prod
docker-compose -f src/main/docker/postgresql.yml down -v
./gradlew --stop
- name: Upload screenshots of failed e2e tests
Expand Down

0 comments on commit c42670b

Please sign in to comment.