summaryrefslogtreecommitdiff
path: root/.github/workflows/test.yml
blob: 6fa6b61cbd9851b35e09d647a3fee34e8a2266c8 (plain)
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
on:
    - push

name: Tests

jobs:
    test:
        name: Run NodeJS Tests
        runs-on: ubuntu-latest
        steps:
            -   uses: actions/checkout@v2
            -   name: Setup Java
                uses: actions/setup-java@v1
                with:
                    java-version: 16
            -   name: Run Gradle Tests
                run: ./gradlew jsTest --stacktrace
            -   run: ls -laR build/reports/tests/jsTest
            -   name: Deploy report to Github Pages
                if: always()
                uses: peaceiris/actions-gh-pages@v2
                env:
                    PERSONAL_TOKEN: ${{ secrets.GITHUB_TOKEN }}
                    PUBLISH_BRANCH: gh-pages
                    PUBLISH_DIR: build/reports/tests/jsTest