Skip to content

Update dependency org.apache.maven.plugins:maven-surefire-plugin to v… #387

Update dependency org.apache.maven.plugins:maven-surefire-plugin to v…

Update dependency org.apache.maven.plugins:maven-surefire-plugin to v… #387

Workflow file for this run

name: Cucumber CI
on:
push:
pull_request:
branches:
- main
jobs:
build:
name: 'Build'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache local Maven repository
uses: actions/cache@v4
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