Skip to content

Commit

Permalink
Add a job which runs apiCheck before starting other tests (#3525)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kantis committed May 9, 2023
1 parent 4d11dbf commit 916e557
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/PR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,29 @@ permissions:
contents: read

jobs:
api_check:
runs-on: ubuntu-latest
if: github.repository == 'kotest/kotest'
steps:
- name: Checkout the repo
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.event.inputs.branch }}

- name: Setup JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '8'

- uses: gradle/gradle-build-action@v2

- name: Run api check
run: ./gradlew apiCheck

test_linux:
needs: api_check
runs-on: ubuntu-latest
if: github.repository == 'kotest/kotest'
strategy:
Expand Down Expand Up @@ -54,6 +76,7 @@ jobs:
path: build-reports.zip

test_mac:
needs: api_check
runs-on: macos-latest
if: github.repository == 'kotest/kotest'
strategy:
Expand Down Expand Up @@ -102,6 +125,7 @@ jobs:
path: build-reports.zip

test_windows:
needs: api_check
runs-on: windows-latest
if: github.repository == 'kotest/kotest'
strategy:
Expand Down

0 comments on commit 916e557

Please sign in to comment.