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

name: Tests

jobs:
    test:
        name: Run NodeJS Tests
        steps:
            -   uses: actions/checkout@v2
            -   name: Setup Java
                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