-
Notifications
You must be signed in to change notification settings - Fork 5
34 lines (34 loc) · 946 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Build and Test
on:
push:
branches: [ master, v1 ]
pull_request:
types: [ synchronize, opened, reopened ]
jobs:
test:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci skip')"
steps:
- uses: actions/checkout@v2
- name: Cache Coursier
uses: actions/cache@v1
with:
path: ~/.cache/coursier
key: ${{ runner.os }}-sbt-cache-${{ hashFiles('**/build.sbt') }}
- name: Cache Sbt
uses: actions/cache@v1
with:
path: ~/.sbt
key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }}
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: "2.13 Test"
run: |
sbt "++ 2.13.8; coverage; test; coverageReport"
bash <(curl -s https://codecov.io/bash)
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: "Test All"
run: sbt "+test"