summaryrefslogtreecommitdiff
path: root/.github/workflows/test.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/test.yml')
-rw-r--r--.github/workflows/test.yml38
1 files changed, 38 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 0000000..fe7d374
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,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
+