summaryrefslogtreecommitdiff
path: root/.github/workflows/test.yml
blob: 98151fcdc540adb4fb837c37ac1c9bf7947184db (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
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
            -   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: .