Skip to content

Updated code to Java 21 and Gradle 8.7 #25

Updated code to Java 21 and Gradle 8.7

Updated code to Java 21 and Gradle 8.7 #25

name: Workshop - Introduction to Event Sourcing - Solved
on:
# run it on push to the default repository branch
push:
branches: [main]
paths:
- "workshops/introduction-to-event-sourcing/solved/**"
# run it during pull request
pull_request:
paths:
- "workshops/introduction-to-event-sourcing/solved/**"
defaults:
run:
working-directory: workshops/introduction-to-event-sourcing/solved
jobs:
build-and-test-code:
name: Build and test
runs-on: ubuntu-latest
strategy:
# define the test matrix
matrix:
java-version: [21]
steps:
- name: Check Out Repo
uses: actions/checkout@v4
- name: Start containers
run: docker-compose up -d
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java-version }}
distribution: "adopt"
cache: gradle
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build with Gradle
run: ./gradlew build
with:

Check failure on line 47 in .github/workflows/workshops_introduction-to-event-sourcing-solved.yml

View workflow run for this annotation

GitHub Actions / Workshop - Introduction to Event Sourcing - Solved

Invalid workflow file

The workflow is not valid. .github/workflows/workshops_introduction-to-event-sourcing-solved.yml (Line: 47, Col: 9): Unexpected value 'with'
path: ./workshops/introduction-to-event-sourcing/solved
- name: Archive test report
uses: actions/upload-artifact@v2
if: always()
with:
name: Test report
path: ./workshops/introduction-to-event-sourcing/solved/build/test-results/test
- name: Stop containers
if: always()
run: docker-compose down