W-17683749: Add build to githubactions #1
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: 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: 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 |