From 2f16ae76b6c5b37ea2e439105ff45c814014d34b Mon Sep 17 00:00:00 2001 From: Alexander Cerutti Date: Sat, 29 Apr 2023 18:09:53 +0200 Subject: [PATCH] Added workflow for running tests on pull requests and on pushes --- .github/workflows/run-tests.yml | 45 +++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/run-tests.yml diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml new file mode 100644 index 0000000..fbe8866 --- /dev/null +++ b/.github/workflows/run-tests.yml @@ -0,0 +1,45 @@ +on: + push: + branches: + - master + + pull_request: + types: [opened, edited] + branches: + - master + + workflow_dispatch: + +jobs: + test-on-ubuntu: + name: Testing Workflow Linux + runs-on: ubuntu-latest + env: + SIGNER_CERT: ${{ secrets.SIGNER_CERT }} + SIGNER_KEY: ${{ secrets.SIGNER_KEY }} + WWDR: ${{ secrets.WWDR }} + SIGNER_KEY_PASSPHRASE: ${{ secrets.SIGNER_KEY_PASSPHRASE }} + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: "14.x" + check-latest: true + - run: | + npm install + npm run build + npm run test + + test-on-windows: + name: Testing Workflow Windows + runs-on: windows-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: "14.x" + check-latest: true + - run: | + npm install + npm run build + npm run test