Update sbt to 1.10.5 #1916
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 was automatically generated by sbt-github-actions using the | |
# githubWorkflowGenerate task. You should add and commit this file to | |
# your git repository. It goes without saying that you shouldn't edit | |
# this file by hand! Instead, if you wish to make changes, you should | |
# change your sbt build configuration to revise the workflow description | |
# to meet your needs, then regenerate this file. | |
name: Continuous Integration | |
on: | |
pull_request: | |
branches: ['**'] | |
push: | |
branches: ['**'] | |
env: | |
SBT_OPTS: '-Xmx2048M' | |
jobs: | |
build: | |
name: Build and Test | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
scala: [3.5.2] | |
java: [temurin@21] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout current branch (full) | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Java (temurin@21) | |
if: matrix.java == 'temurin@21' | |
uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: 21 | |
cache: sbt | |
- name: Setup sbt | |
uses: sbt/setup-sbt@v1 | |
- name: Check that workflows are up to date | |
run: sbt --client '++ ${{ matrix.scala }}; githubWorkflowCheck' | |
- name: Build project | |
run: sbt --client '++ ${{ matrix.scala }}; test' | |
- name: Build projects | |
run: sbt --client '++ ${{ matrix.scala }}; build' | |
- name: Check Formatting | |
run: sbt --client '++ ${{ matrix.scala }}; check' | |
- name: Check docs formatting | |
run: sbt --client '++ ${{ matrix.scala }}; docs/mdoc' | |
- name: Setup Node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16.x | |
cache: yarn | |
cache-dependency-path: website/yarn.lock | |
- name: Check build website | |
run: | | |
cd ./website | |
yarn install --frozen-lockfile | |
yarn build | |
- name: Deploy to Github Pages | |
if: ${{ github.ref == 'refs/heads/main' }} | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./website/build | |
user_name: github-actions[bot] | |
user_email: 41898282+github-actions[bot]@users.noreply.github.com |