release notes script #271
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: CI | |
on: | |
pull_request: | |
branches: ['*'] | |
jobs: | |
build: | |
name: Build and Test | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
java: | |
- 8 | |
- 11 | |
- 17 | |
# - [email protected] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
# Container modules occupy too much disk space. The GitHub-hosted runners ran into the | |
# error: "no space left on device." | |
# This action will free up disk space by removing unnecessary files. | |
- name: Free Disk Space | |
uses: jlumbroso/[email protected] | |
if: runner.os == 'Linux' | |
with: | |
tool-cache: true | |
android: true | |
dotnet: true | |
haskell: true | |
large-packages: true | |
docker-images: true | |
swap-storage: false | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: temurin # See 'Supported distributions' for available options | |
java-version: ${{ matrix.java }} | |
check-latest: true | |
cache: 'sbt' | |
- name: ${{ matrix.command }} | |
- name: Restore cache | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.sbt | |
~/.ivy2/cache | |
~/.cache/coursier | |
key: cache-v1-${{ hashFiles('build.sbt') }} | |
restore-keys: | | |
cache-v1- | |
- name: Compile and Test | |
run: sbt +test |