-
Notifications
You must be signed in to change notification settings - Fork 78
59 lines (59 loc) · 1.75 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: CI
on:
pull_request:
push:
schedule:
- cron: '0 0 * * 0'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 50
strategy:
fail-fast: false
matrix:
scala:
- "2.12.x"
- "2.13.x"
- "3.x"
java:
- 8
- 11
- 17
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3.12.0
with:
java-version: ${{matrix.java}}
distribution: temurin
- uses: coursier/cache-action@d1039466d0812d6370649b9afb02bbf5f646bacf # v6.4.3
- run: sbt -v
scalafmtSbtCheck
"++ ${{ matrix.scala }} -v"
"scalafmtCheckAll"
"Test/compile"
"test"
push_gh_pages:
needs: test
timeout-minutes: 30
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'atnos-org' && github.ref == 'refs/heads/master' && github.event_name == 'push' }}
steps:
- uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3.12.0
with:
java-version: 8
distribution: temurin
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- name: Install pandoc
run: ./.github/install_pandoc.sh
- uses: coursier/cache-action@d1039466d0812d6370649b9afb02bbf5f646bacf # v6.4.3
- name: Generate html
run: ./.github/gen_doc.sh
- name: Push to gh-pages
uses: JamesIves/github-pages-deploy-action@a1ea191d508feb8485aceba848389d49f80ca2dc # v4.4.3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: target/specs2-reports/site
CLEAN: true