Skip to content

Commit e0d0324

Browse files
authored
Update build.yml
1 parent bf395a1 commit e0d0324

File tree

1 file changed

+19
-16
lines changed

1 file changed

+19
-16
lines changed

.github/workflows/build.yml

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
1-
name: Scala Build and Test CI
1+
name: Run Tests
22
on: push
33

44
jobs:
5-
build:
6-
runs-on: ubuntu-latest
7-
steps:
8-
- uses: actions/checkout@v2
9-
- name: run compile
10-
run: sbt compile
115
test:
126
runs-on: ubuntu-latest
137
steps:
14-
- uses: actions/checkout@v2
15-
- name: run tests
16-
run: sbt test
17-
lint:
18-
runs-on: ubuntu-latest
19-
steps:
20-
- uses: actions/checkout@v2
21-
- name: Formatting
22-
run: sbt scalafmtSbtCheck scalafmtCheck
8+
- uses: actions/checkout@v2
9+
- name: Cache SBT ivy cache
10+
uses: actions/cache@v1
11+
with:
12+
path: ~/.ivy2/cache
13+
key: ${{ runner.os }}-sbt-ivy-cache-${{ hashFiles('**/build.sbt') }}
14+
- name: Cache SBT
15+
uses: actions/cache@v1
16+
with:
17+
path: ~/.sbt
18+
key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }}
19+
- name: Run tests
20+
run: sbt test
21+
env:
22+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
23+
GITHUB_TOKEN: ${{ secrets.PUBLIC_GITHUB_TOKEN }}
24+
25+

0 commit comments

Comments
 (0)