Skip to content

Recompile on Edit [RIP67] #81

Recompile on Edit [RIP67]

Recompile on Edit [RIP67] #81

Workflow file for this run

name: Build
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]
types: [opened, synchronize, reopened]
jobs:
build:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set Up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'adopt-hotspot'
- name: Coursier Caching
uses: coursier/cache-action@v6
#- name: Build, Run Test
# run: |
# sbt -v clean Test/compile test
# env:
# COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# COVERALLS_FLAG_NAME: Scala ${{ matrix.scala }}
#- name: Build, Run Test, Coverage
# run: |
# sbt -v clean coverage Test/compile test coverageAggregate
# env:
# COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# COVERALLS_FLAG_NAME: Scala ${{ matrix.scala }}
#- name: Archive code coverage results
# uses: actions/upload-artifact@v3
# with:
# name: code-coverage-report
# path: "target/scala-3.4.1/scoverage-report/"
- name: Archive code coverage results
uses: actions/upload-artifact@v3
with:
name: code-coverage-report
path: "target/scala-3.4.0/scoverage-report/"
- name: Cleanup Before Caching
shell: bash
run: |
rm -rf "$HOME/.ivy2/local" || true
find $HOME/Library/Caches/Coursier/v1 -name "ivydata-*.properties" -delete || true
find $HOME/.ivy2/cache -name "ivydata-*.properties" -delete || true
find $HOME/.cache/coursier/v1 -name "ivydata-*.properties" -delete || true
find $HOME/.sbt -name "*.lock" -delete || true