CI #1631
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | |
- "latest" | |
java: | |
- 8 | |
- 21 | |
steps: | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
- uses: actions/setup-java@b36c23c0d998641eff861008f374ee103c25ac73 # v4.4.0 | |
with: | |
java-version: ${{matrix.java}} | |
distribution: temurin | |
- uses: sbt/setup-sbt@8a071aa780c993c7a204c785d04d3e8eb64ef272 # v1.1.0 | |
- uses: coursier/cache-action@142d2738bd29f0eb9d44610828acb3a19809feab # v6.4.6 | |
- if: ${{ matrix.scala == 'latest' }} | |
run: sbt -v | |
scalafmtSbtCheck | |
"++ 3.5.2-RC2!" | |
"scalafmtCheckAll" | |
"Test/compile" | |
"test" | |
- if: ${{ matrix.scala != 'latest' }} | |
run: sbt -v | |
scalafmtSbtCheck | |
"++ ${{ matrix.scala }} -v" | |
"scalafmtCheckAll" | |
"Test/compile" | |
"test" | |
wasm: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
- uses: actions/setup-java@b36c23c0d998641eff861008f374ee103c25ac73 # v4.4.0 | |
with: | |
java-version: 21 | |
distribution: temurin | |
- uses: sbt/setup-sbt@8a071aa780c993c7a204c785d04d3e8eb64ef272 # v1.1.0 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
- uses: coursier/cache-action@142d2738bd29f0eb9d44610828acb3a19809feab # v6.4.6 | |
- run: sbt -v | |
-Dscala_js_wasm | |
"project allJS" | |
"+ Test/compile" | |
"+ test" | |
push_gh_pages: | |
needs: | |
- test | |
- wasm | |
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@b36c23c0d998641eff861008f374ee103c25ac73 # v4.4.0 | |
with: | |
java-version: 8 | |
distribution: temurin | |
- uses: sbt/setup-sbt@8a071aa780c993c7a204c785d04d3e8eb64ef272 # v1.1.0 | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
- name: Install pandoc | |
run: ./.github/install_pandoc.sh | |
- uses: coursier/cache-action@142d2738bd29f0eb9d44610828acb3a19809feab # v6.4.6 | |
- name: Generate html | |
run: ./.github/gen_doc.sh | |
- name: Push to gh-pages | |
uses: JamesIves/github-pages-deploy-action@881db5376404c5c8d621010bcbec0310b58d5e29 # v4.6.8 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages | |
FOLDER: target/specs2-reports/site | |
CLEAN: true |