-
Notifications
You must be signed in to change notification settings - Fork 642
37 lines (35 loc) · 1.23 KB
/
build.yml
File metadata and controls
37 lines (35 loc) · 1.23 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
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: '17'
- 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