forked from Colisweb/sbt-datadog
-
Notifications
You must be signed in to change notification settings - Fork 4
39 lines (34 loc) · 879 Bytes
/
ci.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
35
36
37
38
39
name: CI
on:
pull_request:
types: [ opened, reopened, synchronize ]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: coursier/cache-action@v6
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11
check-latest: true
- name: Run scalafix and scalafmt
run: sbt 'scalafmtSbtCheck; scalafmtCheckAll;'
ci:
runs-on: ubuntu-latest
steps:
- run: env
shell: bash
- uses: actions/checkout@v4
- uses: coursier/cache-action@v6
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11
check-latest: true
- name: Compile code
shell: bash
run: sbt 'clean;+Test/compile;+publishLocal'