update README.md #11
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: Master CI | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
workflow_dispatch: | |
jobs: | |
verification: | |
runs-on: ubuntu-latest | |
if: ${{ !contains(github.event.head_commit.message, '[no-ci]') }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
lfs: true | |
- name: Run unit tests | |
run: ./gradlew testDebugUnitTest | |
- name: Run screenshot tests | |
run: ./gradlew verifyPaparazziDebug | |
- name: Archive test reports | |
if: failure() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: reports | |
path: | | |
lib/build/reports/ | |
- name: Publish docs | |
if: ${{ github.event_name == 'push' }} | |
env: | |
CI_COMMIT_MESSAGE: Docs for '${{ github.event.head_commit.message }}' | |
CI_COMMIT_AUTHOR: CI Docs Scribe | |
run: | | |
./gradlew dokkaHtml | |
cp -r lib/build/dokka/html ../docs | |
git fetch origin docs | |
git checkout docs | |
rm -rf ./* | |
cp -r ../docs/* ./ | |
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}" | |
git config --global user.email "staakk@users.noreply.github.com" | |
git add . | |
git commit -m "${{ env.CI_COMMIT_MESSAGE }}" | |
git push |