Skip to content

W-17683749: Add test stage #3

W-17683749: Add test stage

W-17683749: Add test stage #3

Workflow file for this run

name: Build AMF
on:
push:
branches:
- W-17683749
pull_request:
branches:
- W-17683749
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
- name: Install SBT
run: |
echo "Installing SBT..."
curl -L https://scala.jfrog.io/artifactory/debian/sbt-1.9.8.deb -o sbt.deb
sudo dpkg -i sbt.deb
sudo apt-get update
sudo apt-get install -f
sbt sbtVersion
- name: Cache SBT dependencies
uses: actions/cache@v3
with:
path: ~/.ivy2/cache
key: sbt-${{ runner.os }}-${{ hashFiles('**/build.sbt') }}
restore-keys: sbt-${{ runner.os }}-
- name: Run SBT build
run: sbt compile
- name: Run Tests
run: sbt clean coverage test coverageAggregate