Skip to content

Commit

Permalink
Create testcontainers.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
kifj authored Mar 19, 2024
1 parent 83abf46 commit 716332a
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/testcontainers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Java CI

on: [workflow_dispatch]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 21
distribution: adopt
- name: Build with Maven
run: mvn -Pgithub,default -B clean package
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Prepare IT
run: mvn -Pdocker-integration-test pre-integration-test -DskipTests
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run IT
run: mvn -Parq-remote verify
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
junit_files: target/**/TEST-*.xml

0 comments on commit 716332a

Please sign in to comment.