Closes #127 #183
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: Carnival CI | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
test_runner: | |
name: Unit Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build testing container | |
run: docker-compose -f ./docker-compose-test.yml build | |
- name: Run tests and publish coverage results | |
run: | | |
docker-compose -f docker-compose-test.yml run -e COVERALLS_REPO_TOKEN -w /appsrc/app app gradle test coveralls --console=plain --continue -Dtest.http=false | |
env: | |
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | |
build_docs: | |
# Only publish docs on master branch | |
if: github.ref == 'refs/heads/master' | |
name: Publish Docs | |
#needs: [test_runner] | |
runs-on: ubuntu-latest | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v2 | |
- name: Build Docker Images | |
run: | | |
docker-compose -f ./docker-compose-doc.yml build | |
- name: Building Docs | |
run: | | |
docker-compose -f ./docker-compose-doc.yml up --abort-on-container-exit --force-recreate | |
rm docs/.gitignore | |
- name: Deploy | |
uses: JamesIves/[email protected] | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages | |
FOLDER: docs | |