Skip to content

Upgrade: Bump axios, @docusaurus/core and @docusaurus/preset-classic #221

Upgrade: Bump axios, @docusaurus/core and @docusaurus/preset-classic

Upgrade: Bump axios, @docusaurus/core and @docusaurus/preset-classic #221

Workflow file for this run

name: Build All
on:
push:
branches-ignore:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
scala:
- { name: "Scala 2", version: "2.11.12", binary-version: "2.11", java-version: "[email protected]" }
- { name: "Scala 2", version: "2.12.13", binary-version: "2.12", java-version: "[email protected]" }
- { name: "Scala 2", version: "2.13.5", binary-version: "2.13", java-version: "[email protected]" }
- { name: "Scala 3", version: "3.1.3", binary-version: "3", java-version: "[email protected]" }
steps:
- uses: actions/checkout@v4
- uses: olafurpg/setup-scala@v14
with:
java-version: ${{ matrix.scala.java-version }}
- name: Cache sbt
uses: actions/cache@v4
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 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 }}
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}"
PROJECT_VERSION=$(git log --format=%H -1)
.github/workflows/sbt-build.sh ${{ matrix.scala.version }} $PROJECT_VERSION
- name: "[PR] Build 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 }}
run: |
echo "Pull request to the '${CURRENT_BRANCH_NAME}' branch"
echo "RUN_ID=${RUN_ID}"
echo "RUN_NUMBER=${RUN_NUMBER}"
echo "PR #${PR_NUMBER}"
PROJECT_VERSION=$(git log --format=%H -1)
.github/workflows/sbt-build.sh ${{ matrix.scala.version }} $PROJECT_VERSION