Update dependency maven to v3.9.4 #269
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Cucumber CI | |
on: | |
push: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
name: 'Build' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Cache local Maven repository | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2/repository | |
key: build-${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
build-${{ runner.os }}-maven- | |
- uses: | |
AdoptOpenJDK/install-jdk@v1 | |
with: | |
version: '11' | |
- name: test maven | |
run: | | |
cd maven | |
./mvnw test -Dmaven.test.failure.ignore | |
- run: grep -q "The step 'I wait 1 hour' and 1 other step(s) are undefined." maven/target/surefire-reports/io.cucumber.skeleton.RunCucumberTest.txt || ( echo "mvn test didn't fail as expected" && false ) | |
- name: test gradle | |
run: | | |
cd gradle | |
./gradlew test || true | |
- run: grep -q "The step 'I wait 1 hour' and 1 other step(s) are undefined." gradle/build/reports/tests/test/classes/io.cucumber.skeleton.RunCucumberTest.html || ( echo "gradle test didn't fail as expected" && false ) | |
- name: compare gradle and maven sources | |
run: diff gradle/src maven/src |