Skip to content

CI

CI #449

Workflow file for this run

name: CI
on:
pull_request:
push:
schedule:
- cron: '0 0 * * 0'
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
matrix:
include:
- java: 8
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3.12.0
with:
java-version: ${{matrix.java}}
distribution: adopt
- uses: coursier/cache-action@v6
- run: sbt -v "+ test"
push_gh_pages:
needs: test
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3.12.0
with:
java-version: 8
distribution: adopt
- uses: actions/checkout@v3
- uses: coursier/cache-action@v6
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: 2.7.2
- run: gem update --system && gem install jekyll bundler
- run: sbt -v docs/makeMicrosite
- run: sudo apt-get install tree
- run: tree docs/target/site
- name: Push to gh-pages
if: ${{ github.repository_owner == 'b-studios' && github.ref == 'refs/heads/master' && github.event_name == 'push' }}
uses: JamesIves/github-pages-deploy-action@v4.4.3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: docs/target/site
CLEAN: true