From d56753eb5de3049e094ed3a612c500c9516600c5 Mon Sep 17 00:00:00 2001 From: nea Date: Fri, 13 Aug 2021 01:04:47 +0200 Subject: tests --- .github/workflows/test.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/test.yml (limited to '.github/workflows') 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 + -- cgit