From 2994ef3c3c3a905d834732c253caa3788f64e88d Mon Sep 17 00:00:00 2001 From: webzwo0i Date: Fri, 12 Feb 2021 02:00:28 +0100 Subject: [PATCH] tests: try all supported node versions --- .github/workflows/backend-tests.yml | 14 ++++++++++++-- .github/workflows/frontend-admin-tests.yml | 16 +++++++++++++--- 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/.github/workflows/backend-tests.yml b/.github/workflows/backend-tests.yml index 6f4b4cc58..a7c254042 100644 --- a/.github/workflows/backend-tests.yml +++ b/.github/workflows/backend-tests.yml @@ -13,13 +13,18 @@ jobs: name: Linux without plugins runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + node: [10, 12, 14, 15] + steps: - name: Checkout repository uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: 12 + node-version: ${{ matrix.node }} - name: Install libreoffice run: | @@ -42,13 +47,18 @@ jobs: name: Linux with Plugins runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + node: [10, 12, 14, 15] + steps: - name: Checkout repository uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: 12 + node-version: ${{ matrix.node }} - name: Install libreoffice run: | diff --git a/.github/workflows/frontend-admin-tests.yml b/.github/workflows/frontend-admin-tests.yml index 3cfd39f59..73cf7ab67 100644 --- a/.github/workflows/frontend-admin-tests.yml +++ b/.github/workflows/frontend-admin-tests.yml @@ -7,13 +7,23 @@ jobs: name: with plugins runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + node: [10, 12, 14, 15] + steps: + - name: Generate Sauce Labs strings + id: sauce_strings + run: | + printf %s\\n '::set-output name=tunnel_id::${{ github.run_id }}-${{ github.run_number }}-${{ github.job }}-node${{ matrix.node }}' + - name: Checkout repository uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: 12 + node-version: ${{ matrix.node }} - name: Install etherpad plugins # We intentionally install an old ep_align version to test upgrades to the minor version number. @@ -52,14 +62,14 @@ jobs: with: username: ${{ secrets.SAUCE_USERNAME }} accessKey: ${{ secrets.SAUCE_ACCESS_KEY }} - tunnelIdentifier: ${{ github.run_id }}-${{ github.run_number }}-${{ github.job }} + tunnelIdentifier: ${{ steps.sauce_strings.outputs.tunnel_id }} - name: Run the frontend admin tests shell: bash env: SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }} SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }} - TRAVIS_JOB_NUMBER: ${{ github.run_id }}-${{ github.run_number }}-${{ github.job }} + TRAVIS_JOB_NUMBER: ${{ steps.sauce_strings.outputs.tunnel_id }} GIT_HASH: ${{ steps.environment.outputs.sha_short }} run: | src/tests/frontend/travis/adminrunner.sh