summaryrefslogtreecommitdiff
path: root/.github/workflows/test.yml
blob: 9d9bd00ba0821ffd56e1cb370858e81433a31186 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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: Get Allure history
                uses: actions/checkout@v2
                if: always()
                continue-on-error: true
                with:
                    ref: gh-pages
                    path: gh-pages
            -   name: Run Gradle Tests
                run: ./gradlew jsNodeTest --stacktrace
            -   name: Generate Allure Report
                if: always()
                uses: simple-elf/allure-report-action@master
                with:
                    allure_results: build/test-results/jsNodeTest
                    allure_history: allure-history


            -   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: allure-history