-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10961 from SethTisue/get-travis-ci-out-of-pr-vali…
…dation no more Travis-CI for PR validation, use GitHub Actions
- Loading branch information
Showing
3 changed files
with
34 additions
and
17 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: PR validation | ||
on: | ||
pull_request: | ||
|
||
jobs: | ||
validate: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Java | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: temurin | ||
java-version: 8 | ||
cache: sbt | ||
- name: Setup SBT | ||
uses: sbt/setup-sbt@v1 | ||
# "mini" bootstrap for PR validation | ||
# "mini" in these senses: | ||
# - it doesn't use the complicated legacy scripts. | ||
# - it doesn't publish to scala-pr-validation-snapshots | ||
# (because we need secrets for that and PRs from forks can't have secrets) | ||
# it is still a true bootstrap. | ||
- name: Stage 1 | ||
run: sbt -warn setupPublishCore generateBuildCharacterPropertiesFile headerCheck publishLocal | ||
- name: Stage 2 | ||
run: | | ||
STARR=`cat buildcharacter.properties | grep ^maven.version.number | cut -d= -f2` && echo $STARR | ||
sbt -Dstarr.version=$STARR -warn setupValidateTest Test/compile info testAll |
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