From bf3068905914c284d868d62f9635450a3a4db628 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Thu, 17 Nov 2022 11:44:55 +0000 Subject: [PATCH] Disable ember-cli-based CI tests for stable branch The upgrade of node in our discourse_test docker image has caused these to start failing. Ember-cli assets are default-disabled on the stable branch, so there is little need to run these tests. --- .github/workflows/tests.yml | 104 ++++++++++++++++++------------------ 1 file changed, 52 insertions(+), 52 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9af681a4bd7..56cfa2d147a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -168,10 +168,10 @@ jobs: run: QUNIT_EMBER_CLI=0 bin/rake plugin:qunit['*','1200000'] timeout-minutes: 30 - - name: Plugin QUnit (Ember CLI) - if: matrix.build_type == 'frontend' && (matrix.target == 'plugins' || matrix.target == 'core-plugins') - run: QUNIT_EMBER_CLI=1 bin/rake plugin:qunit['*','1200000'] - timeout-minutes: 30 + # - name: Plugin QUnit (Ember CLI) + # if: matrix.build_type == 'frontend' && (matrix.target == 'plugins' || matrix.target == 'core-plugins') + # run: QUNIT_EMBER_CLI=1 bin/rake plugin:qunit['*','1200000'] + # timeout-minutes: 30 - name: Check Annotations if: matrix.build_type == 'annotations' @@ -190,61 +190,61 @@ jobs: fi timeout-minutes: 30 - core_frontend_tests: - name: core frontend (${{ matrix.browser }}) - runs-on: ubuntu-latest - container: discourse/discourse_test:slim-browsers - timeout-minutes: 30 + # core_frontend_tests: + # name: core frontend (${{ matrix.browser }}) + # runs-on: ubuntu-latest + # container: discourse/discourse_test:slim-browsers + # timeout-minutes: 30 - strategy: - fail-fast: false - matrix: - browser: ["Chrome", "Firefox", "Headless Firefox"] + # strategy: + # fail-fast: false + # matrix: + # browser: ["Chrome", "Firefox", "Headless Firefox"] - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 1 + # steps: + # - uses: actions/checkout@v2 + # with: + # fetch-depth: 1 - - name: Setup Git - run: | - git config --global user.email "ci@ci.invalid" - git config --global user.name "Discourse CI" + # - name: Setup Git + # run: | + # git config --global user.email "ci@ci.invalid" + # git config --global user.name "Discourse CI" - - name: Get yarn cache directory - id: yarn-cache-dir - run: echo "::set-output name=dir::$(yarn cache dir)" + # - name: Get yarn cache directory + # id: yarn-cache-dir + # run: echo "::set-output name=dir::$(yarn cache dir)" - - name: Yarn cache - uses: actions/cache@v2 - id: yarn-cache - with: - path: ${{ steps.yarn-cache-dir.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- + # - name: Yarn cache + # uses: actions/cache@v2 + # id: yarn-cache + # with: + # path: ${{ steps.yarn-cache-dir.outputs.dir }} + # key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + # restore-keys: | + # ${{ runner.os }}-yarn- - - name: Yarn install - working-directory: ./app/assets/javascripts/discourse - run: yarn install + # - name: Yarn install + # working-directory: ./app/assets/javascripts/discourse + # run: yarn install - - name: Ember Build - working-directory: ./app/assets/javascripts/discourse - run: | - sudo -E -u discourse mkdir /tmp/emberbuild - sudo -E -u discourse -H yarn ember build --environment=test -o /tmp/emberbuild + # - name: Ember Build + # working-directory: ./app/assets/javascripts/discourse + # run: | + # sudo -E -u discourse mkdir /tmp/emberbuild + # sudo -E -u discourse -H yarn ember build --environment=test -o /tmp/emberbuild - - name: Core QUnit 1 - working-directory: ./app/assets/javascripts/discourse - run: sudo -E -u discourse -H yarn ember exam --path /tmp/emberbuild --split=3 --partition=1 --launch "${{ matrix.browser }}" --random - timeout-minutes: 20 + # - name: Core QUnit 1 + # working-directory: ./app/assets/javascripts/discourse + # run: sudo -E -u discourse -H yarn ember exam --path /tmp/emberbuild --split=3 --partition=1 --launch "${{ matrix.browser }}" --random + # timeout-minutes: 20 - - name: Core QUnit 2 - working-directory: ./app/assets/javascripts/discourse - run: sudo -E -u discourse -H yarn ember exam --path /tmp/emberbuild --split=3 --partition=2 --launch "${{ matrix.browser }}" --random - timeout-minutes: 20 + # - name: Core QUnit 2 + # working-directory: ./app/assets/javascripts/discourse + # run: sudo -E -u discourse -H yarn ember exam --path /tmp/emberbuild --split=3 --partition=2 --launch "${{ matrix.browser }}" --random + # timeout-minutes: 20 - - name: Core QUnit 3 - working-directory: ./app/assets/javascripts/discourse - run: sudo -E -u discourse -H yarn ember exam --path /tmp/emberbuild --split=3 --partition=3 --launch "${{ matrix.browser }}" --random - timeout-minutes: 20 + # - name: Core QUnit 3 + # working-directory: ./app/assets/javascripts/discourse + # run: sudo -E -u discourse -H yarn ember exam --path /tmp/emberbuild --split=3 --partition=3 --launch "${{ matrix.browser }}" --random + # timeout-minutes: 20