Created
July 15, 2021 19:13
-
-
Save pvillega/1248935d89428d3711ea74988fa71c87 to your computer and use it in GitHub Desktop.
gh-action-compile
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
# See - https://docs.github.com/en/free-pro-team@latest/actions | |
name: App-build | |
# Triggers the workflow on push or pull request events, any branch, ignoring tags | |
on: | |
push: | |
branches: | |
- master | |
tags-ignore: | |
- v* | |
pull_request: | |
jobs: | |
app-build: | |
name: Build App | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Cache coursier artefacts | |
uses: coursier/cache-action@v3 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- name: Build and run tests | |
env: | |
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
run: sbt test:compile test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment