Dependency Updates #1068
Workflow file for this run
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
# Don't edit this file! | |
# It is automatically updated after every release of https://github.com/alejandrohdezma/sbt-ci | |
# If you want to suggest a change, please open a PR or issue in that repository | |
# Runs `sbt ci-test` on the project on differnt JDKs (this task should be added to the project as a command alias | |
# containing the necessary steps to compile, check formatters, launch tests...). | |
# | |
# An example of this `ci-test` alias can be found in https://github.com/alejandrohdezma/sbt-github/blob/main/build.sbt. | |
# | |
# It will also do the following: | |
# | |
# - It will automatically label PRs based on head branch. | |
# - It will automatically enable auto-merge on `Scala Steward` PRs. | |
name: CI | |
on: | |
pull_request: | |
types: [opened, reopened, labeled, unlabeled, synchronize] | |
jobs: | |
labeler: | |
if: github.event.pull_request.state == 'OPEN' && github.actor != 'dependabot[bot]' | |
name: Labeler | |
runs-on: ubuntu-latest | |
steps: | |
- name: Update PR labels | |
uses: alejandrohdezma/actions/labeler@v1 | |
if: github.event.pull_request.head.repo.full_name == github.repository | |
- name: Check PR labels | |
uses: alejandrohdezma/actions/label-check@v1 | |
ci-steward: | |
if: | | |
github.event.pull_request.state == 'OPEN' && github.event.pull_request.head.repo.full_name == github.repository && | |
github.event.pull_request.user.login == 'alejandrohdezma-steward[bot]' | |
name: (Scala Steward) Enable auto-merge | |
runs-on: ubuntu-latest | |
steps: | |
- name: Enable auto-merge for this PR | |
run: gh pr merge --auto --merge ${{github.event.pull_request.number}} -R "$GITHUB_REPOSITORY" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
test: | |
needs: [ci-steward] | |
if: | | |
always() && !contains(needs.*.result, 'failure') && github.event.pull_request.state == 'OPEN' && | |
github.actor != 'dependabot[bot]' | |
name: Run "sbt ci-test" on JDK ${{ matrix.jdk }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
jdk: | |
- 11 | |
- 17 | |
steps: | |
- name: Checkout project | |
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 | |
with: | |
ref: ${{ github.head_ref }} | |
- uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3.13.0 | |
with: | |
distribution: "liberica" | |
java-version: ${{ matrix.jdk }} | |
cache: "sbt" | |
- name: Run `sbt ci-test` | |
run: sbt ci-test |