Skip to content

Instantly share code, notes, and snippets.

@pvillega
Created July 15, 2021 19:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pvillega/1248935d89428d3711ea74988fa71c87 to your computer and use it in GitHub Desktop.
Save pvillega/1248935d89428d3711ea74988fa71c87 to your computer and use it in GitHub Desktop.
gh-action-compile
# 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