-
-
Notifications
You must be signed in to change notification settings - Fork 532
41 lines (39 loc) · 1.31 KB
/
container_test.yml
File metadata and controls
41 lines (39 loc) · 1.31 KB
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
# This is a basic workflow to help you get started with Actions
name: Docker container test
on:
push:
branches:
- master
pull_request:
branches: [master]
workflow_dispatch:
permissions:
contents: read
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
test:
name: Container test
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v5
- name: Set up JDK 23
uses: actions/setup-java@v5
with:
java-version: "23"
distribution: "temurin"
cache: "maven"
- name: Navigate to test script and run
run: cd .github/scripts && bash docker-create.sh -t
- uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: e2e results
path: src/test/e2e/cypress/reports/mochawesome/
challenge_51_test:
name: Challenge 51 compose test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Run compose and print out service
run: export DOCKER_BUILDKIT=1 && cd src/main/resources/challenges/challenge-51 && docker compose -f challenge51docker-compose.yml build && docker compose -f challenge51docker-compose.yml run myservice