-
Notifications
You must be signed in to change notification settings - Fork 79
58 lines (58 loc) · 1.74 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
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
- 21
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3.13.0
with:
java-version: ${{matrix.java}}
distribution: temurin
- uses: coursier/cache-action@a0e7cd24be81bc84f0d7461e02bd1a96980553d7 # v6.4.4
- 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@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3.13.0
with:
java-version: 8
distribution: temurin
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Install pandoc
run: ./.github/install_pandoc.sh
- uses: coursier/cache-action@a0e7cd24be81bc84f0d7461e02bd1a96980553d7 # v6.4.4
- 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