aqua/.github/workflows/test_branch.yml

39 lines
841 B
YAML
Raw Normal View History

2021-03-22 14:25:47 +00:00
name: "test"
on:
push:
branches-ignore:
2021-03-23 09:27:30 +00:00
- main
2021-03-22 14:25:47 +00:00
jobs:
test:
name: "sbt test"
runs-on: "ubuntu-latest"
steps:
- name: Checkout repository
uses: actions/checkout@v2
### Setup
2021-03-23 09:27:30 +00:00
- name: Cache SBT
uses: actions/cache@v2
with:
path: |
~/.ivy2/cache
~/.sbt
key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }}
- name: Cache coursier
uses: actions/cache@v1
with:
path: ~/.cache/coursier
key: ${{ runner.OS }}-coursier-cache-${{ hashFiles('**/*.sbt') }}
restore-keys: |
${{ runner.OS }}-coursier-cache-${{ hashFiles('**/*.sbt') }}-
${{ runner.OS }}-coursier-cache-
2021-03-22 14:25:47 +00:00
- uses: olafurpg/setup-scala@v10
### Update & build
2021-03-23 09:27:30 +00:00
- run: sbt test