Skip to content

Commit

Permalink
[DON'T MERGE] Check GA for 2.1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
ihostage committed Jan 20, 2022
1 parent 6f8016b commit 6ee3a15
Show file tree
Hide file tree
Showing 3 changed files with 144 additions and 105 deletions.
105 changes: 0 additions & 105 deletions .github/settings.yml

This file was deleted.

140 changes: 140 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
name: Pull Requests

on:
pull_request:
branches:
- main
- 2.1.x

concurrency:
# Only run once for latest commit per ref and cancel other (previous) runs.
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
check-code-style:
name: Check / Code Style !!!11
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
# we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves
fetch-depth: 0

- name: Set up JDK 11
uses: olafurpg/setup-scala@v13
with:
java-version: adopt@1.11

- name: Cache Coursier cache
uses: coursier/cache-action@v6.2

- name: Code validations
run: sbt validateCode

check-binary-compatibility:
name: Check / Binary Compatibility
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
# we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves
fetch-depth: 0

- name: Set up JDK 11
uses: olafurpg/setup-scala@v13
with:
java-version: adopt@1.11

- name: Cache Coursier cache
uses: coursier/cache-action@v6.2

- name: MiMa validations
run: sbt mimaReportBinaryIssues

check-docs:
name: Check / Docs
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
# we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves
fetch-depth: 0

- name: Set up JDK 11
uses: olafurpg/setup-scala@v13
with:
java-version: adopt@1.11

- name: Cache Coursier cache
uses: coursier/cache-action@v6.2

- name: Docs validations
run: sbt doc

tests:
if: ${{ github.base_ref != '2.1.x' }}
runs-on: ubuntu-20.04
needs: # Waiting more lightweight checks
- "check-code-style"
- "check-binary-compatibility"
- "check-docs"
strategy:
matrix:
jdk: [ 11, 8 ]
scala: [ 2.13.8 ] # Should be sync with Mergify conditions (.mergify.yml)
name: Check / Tests (Scala ${{ matrix.scala }} & JDK ${{ matrix.jdk }})
steps:
- name: Checkout
uses: actions/checkout@v2
with:
# we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves
fetch-depth: 0

- name: Set up JDK ${{ matrix.jdk }}
uses: olafurpg/setup-scala@v13
with:
java-version: adopt@1.${{ matrix.jdk }}

- name: Cache Coursier cache
uses: coursier/cache-action@v6.2

- name: Tests
run: sbt ++$SCALA_VERSION 'testOnly -- xonly timefactor 5'
env:
SCALA_VERSION: ${{ matrix.scala }}

tests-21x:
if: ${{ github.base_ref == '2.1.x' }}
runs-on: ubuntu-20.04
needs: # Waiting more lightweight checks
- "check-code-style"
- "check-binary-compatibility"
- "check-docs"
strategy:
matrix:
jdk: [ 11, 8 ]
scala: [ 2.12.15, 2.13.8 ] # Should be sync with Mergify conditions (.mergify.yml)
name: Check / Tests (Scala ${{ matrix.scala }} & JDK ${{ matrix.jdk }})
steps:
- name: Checkout
uses: actions/checkout@v2
with:
# we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves
fetch-depth: 0

- name: Set up JDK ${{ matrix.jdk }}
uses: olafurpg/setup-scala@v13
with:
java-version: adopt@1.${{ matrix.jdk }}

- name: Cache Coursier cache
uses: coursier/cache-action@v6.2

- name: Tests
run: sbt ++$SCALA_VERSION 'testOnly -- xonly timefactor 5'
env:
SCALA_VERSION: ${{ matrix.scala }}
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -400,3 +400,7 @@ The script will walk you through integration tests and publishing.
## License

Play WS is licensed under the Apache license, version 2. See the LICENSE file for more information.




0 comments on commit 6ee3a15

Please sign in to comment.