Bump sbt-docusaur to 0.16.0 #839
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
name: "Build All" | |
on: | |
push: | |
branches: | |
- "**" | |
pull_request: | |
branches: | |
- main | |
env: | |
PROJECT_NAME: "maven2sbt" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
scala: | |
- { name: "Scala 2", version: "2.12.17", binary-version: "2.12", java-version: "adopt@1.11", report: "" } | |
- { name: "Scala 2", version: "2.13.10", binary-version: "2.13", java-version: "adopt@1.11", report: "report" } | |
- { name: "Scala 3", version: "3.2.2", binary-version: "3", java-version: "adopt@1.11", report: "" } | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: olafurpg/setup-scala@v10 | |
with: | |
java-version: ${{ matrix.scala.java-version }} | |
- name: Cache SBT | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.ivy2/cache | |
~/.cache/coursier | |
~/.sbt | |
key: ${{ runner.os }}-sbt-${{ matrix.scala.binary-version }}-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('**/build.properties') }} | |
restore-keys: | | |
${{ runner.os }}-sbt-${{ matrix.scala.binary-version }}- | |
- name: "[Push] Build All for ${{ matrix.scala.name }} ${{ matrix.scala.version }} - ${{ github.run_number }}" | |
if: github.event_name == 'push' | |
env: | |
CURRENT_BRANCH_NAME: ${{ github.ref }} | |
RUN_ID: ${{ github.run_id }} | |
RUN_NUMBER: ${{ github.run_number }} | |
PROJECT_NAME: ${{ env.PROJECT_NAME }} | |
run: | | |
echo "[BEFORE]CURRENT_BRANCH_NAME=${CURRENT_BRANCH_NAME}" | |
export CURRENT_BRANCH_NAME="${CURRENT_BRANCH_NAME#refs/heads/}" | |
echo " [AFTER]CURRENT_BRANCH_NAME=${CURRENT_BRANCH_NAME}" | |
echo "RUN_ID=${RUN_ID}" | |
echo "RUN_NUMBER=${RUN_NUMBER}" | |
echo "Push #${PUSH_NUMBER}" | |
java -version | |
.github/workflows/sbt-build-all.sh ${{ matrix.scala.version }} | |
- name: "[PR] Build All for ${{ matrix.scala.name }} ${{ matrix.scala.version }} - PR-#${{ github.event.pull_request.number }} - ${{ github.run_number }}" | |
if: github.event_name == 'pull_request' | |
env: | |
CURRENT_BRANCH_NAME: ${{ github.base_ref }} | |
RUN_ID: ${{ github.run_id }} | |
RUN_NUMBER: ${{ github.run_number }} | |
PR_NUMBER: ${{ github.event.pull_request.number }} | |
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | |
PROJECT_NAME: ${{ env.PROJECT_NAME }} | |
run: | | |
echo "Rull request to the '${CURRENT_BRANCH_NAME}' branch" | |
echo "RUN_ID=${RUN_ID}" | |
echo "RUN_NUMBER=${RUN_NUMBER}" | |
echo "PR #${PR_NUMBER}" | |
java -version | |
.github/workflows/sbt-build-all.sh ${{ matrix.scala.version }} ${{ matrix.scala.report }} | |
- if: ${{ github.event_name == 'pull_request' && matrix.scala.report == 'report' }} | |
uses: codecov/codecov-action@v3 |