From df373572140baa3b995e15b908513368c592bce9 Mon Sep 17 00:00:00 2001 From: Griefed <griefed@griefed.de> Date: Tue, 28 Sep 2021 09:16:40 +0200 Subject: [PATCH] ci: Run electron tests on all three major OS` --- .github/workflows/test.yml | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5fe9093..4a51087 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,7 +25,6 @@ jobs: - run: npm install -g @quasar/cli - run: npm install - run: quasar build - - run: quasar build -m electron - run: pwd && ls -al * # DOCKER RELATED @@ -40,3 +39,36 @@ jobs: file: ./Dockerfile platforms: linux/amd64,linux/arm/v7,linux/arm64 push: false + + electron: + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [macos-latest, ubuntu-latest, windows-latest] + + steps: + # GET LATEST CODE + - name: Checkout latest code + uses: actions/checkout@master + with: + fetch-depth: 0 + + # SETUP NODE ENVIRONMENT + - name: Setup Node.js environment + uses: actions/setup-node@v2.4.0 + with: + # Version Spec of the version to use. Examples: 12.x, 10.15.1, >=10.15.0 + node-version: '>= 16.9.1' + # Set this option if you want the action to check for the latest available version that satisfies the version spec + check-latest: false + + - name: Build/release Electron app + uses: vedaprakashms/quasar_electron_build@V0.0.1 + with: + # GitHub token, automatically provided to the action + # (No need to define this secret in the repo settings) + github_token: ${{ secrets.github_token }} + + - name: List files + run: ls -al dist -- GitLab