e2e: use canonical HTTPS URLs in external fixtures #2645
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ci | |
| on: | |
| pull_request: | |
| defaults: | |
| run: | |
| shell: bash | |
| env: | |
| TERM: xterm | |
| jobs: | |
| build-linux: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: ci/checkout-repo | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: ci/setup-node | |
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | |
| with: | |
| node-version-file: ".nvmrc" | |
| cache: "npm" | |
| cache-dependency-path: package-lock.json | |
| - name: ci/install-dependencies | |
| env: | |
| PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1 | |
| run: | | |
| wget -qO - https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_22.04/Release.key | sudo apt-key add - | |
| wget -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/download/v4.20.1/yq_linux_amd64 && chmod a+x /usr/local/bin/yq | |
| sudo apt-get update || true && sudo apt-get install -y ca-certificates libxtst-dev libpng++-dev gcc-aarch64-linux-gnu g++-aarch64-linux-gnu jq icnsutils graphicsmagick tzdata | |
| npm ci | |
| - name: ci/test | |
| uses: ./.github/actions/test | |
| - name: ci/build | |
| run: | | |
| mkdir -p ./build/linux | |
| npm run package:linux-tar | |
| bash -x ./scripts/cp_artifacts.sh release ./build/linux | |
| - name: ci/upload-test-results | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: linux-test-results | |
| path: test-results.xml | |
| retention-days: 5 | |
| - name: ci/upload-build | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: build-linux | |
| path: ./build/linux | |
| retention-days: 10 ## No need to keep CI builds more than 10 days | |
| windows-install-deps: | |
| runs-on: windows-2022 | |
| steps: | |
| - name: ci/checkout-repo | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: ci/setup-node | |
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | |
| with: | |
| node-version-file: ".nvmrc" | |
| cache: "npm" | |
| cache-dependency-path: package-lock.json | |
| - name: ci/cache-node-modules | |
| id: cache-node-modules | |
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | |
| with: | |
| path: node_modules | |
| key: ${{ runner.os }}-build-node-modules-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-build-node-modules | |
| ${{ runner.os }}-build- | |
| ${{ runner.os }}- | |
| - name: ci/install-dependencies | |
| env: | |
| PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1 | |
| run: | | |
| # Chocolatey's community feed intermittently returns 503; take yq from its GitHub | |
| # release instead, matching the Linux job. | |
| curl -fsSL --retry 5 --retry-delay 5 \ | |
| -o /c/ProgramData/chocolatey/bin/yq.exe \ | |
| https://github.com/mikefarah/yq/releases/download/v4.20.1/yq_windows_amd64.exe | |
| npm i -g node-gyp | |
| node-gyp install | |
| node-gyp install --devdir="C:\Users\runneradmin\.electron-gyp" --target=$(jq -r .devDependencies.electron package.json) --dist-url="https://electronjs.org/headers" | |
| npm ci --openssl_fips='' | |
| build-win-no-installer: | |
| runs-on: windows-2022 | |
| needs: | |
| - windows-install-deps | |
| steps: | |
| - name: ci/checkout-repo | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: ci/setup-node | |
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | |
| with: | |
| node-version-file: ".nvmrc" | |
| cache: "npm" | |
| cache-dependency-path: package-lock.json | |
| - name: ci/cache-node-modules | |
| id: cache-node-modules | |
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | |
| with: | |
| path: node_modules | |
| key: ${{ runner.os }}-build-node-modules-${{ hashFiles('package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-build-node-modules | |
| ${{ runner.os }}-build- | |
| ${{ runner.os }}- | |
| - name: ci/install-node-gyp | |
| env: | |
| PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1 | |
| run: | | |
| # Chocolatey's community feed intermittently returns 503; take yq from its GitHub | |
| # release instead, matching the Linux job. | |
| curl -fsSL --retry 5 --retry-delay 5 \ | |
| -o /c/ProgramData/chocolatey/bin/yq.exe \ | |
| https://github.com/mikefarah/yq/releases/download/v4.20.1/yq_windows_amd64.exe | |
| npm i -g node-gyp | |
| node-gyp install | |
| node-gyp install --devdir="C:\Users\runneradmin\.electron-gyp" --target=$(jq -r .devDependencies.electron package.json) --dist-url="https://electronjs.org/headers" | |
| node-gyp install --devdir="C:\Users\runneradmin\.electron-gyp" --target=$(jq -r .devDependencies.electron package.json) --dist-url="https://electronjs.org/headers" --arch arm64 | |
| - name: ci/install-dependencies | |
| env: | |
| PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1 | |
| run: | | |
| npm ci --openssl_fips='' | |
| - name: ci/test | |
| uses: ./.github/actions/test | |
| - name: ci/build | |
| run: | | |
| mkdir -p ./build/win | |
| npm run package:windows | |
| bash -x ./scripts/cp_artifacts.sh release ./build/win | |
| - name: ci/upload-test-results | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: windows-test-results | |
| path: test-results.xml | |
| retention-days: 5 | |
| - name: ci/upload-build | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: build-windows | |
| path: ./build/win | |
| retention-days: 10 ## No need to keep CI builds more than 10 days | |
| build-mac-no-dmg: | |
| runs-on: macos-15 | |
| env: | |
| MACOS_NOTIFICATION_STATE_NO_SDK_CHECK: true | |
| CI_MAC_ZIP_ONLY: true | |
| steps: | |
| - name: ci/checkout-repo | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: ci/setup-node | |
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | |
| with: | |
| node-version-file: ".nvmrc" | |
| cache: "npm" | |
| cache-dependency-path: package-lock.json | |
| - name: ci/install-dependencies | |
| env: | |
| PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1 | |
| run: | | |
| brew install yq | |
| sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer | |
| export SDKROOT=$(xcrun --sdk macosx --show-sdk-path) | |
| echo "SDKROOT=$SDKROOT" >> $GITHUB_ENV | |
| xcrun --sdk macosx --show-sdk-version | |
| xcodebuild -version | |
| ls -l /Applications/Xcode_16.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs | |
| npm ci | |
| - name: ci/test | |
| uses: ./.github/actions/test | |
| - name: ci/build | |
| run: | | |
| mkdir -p ./build/macos | |
| npm run package:mac | |
| bash -x ./scripts/cp_artifacts.sh release ./build/macos/ | |
| env: | |
| SDKROOT: ${{ env.SDKROOT }} | |
| - name: ci/upload-test-results | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: macos-test-results | |
| path: test-results.xml | |
| retention-days: 5 | |
| - name: ci/upload-build | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: build-macos | |
| path: ./build/macos/ | |
| retention-days: 10 ## No need to keep CI builds more than 10 days | |
| report-test-results: | |
| if: always() | |
| needs: | |
| - build-mac-no-dmg | |
| - build-win-no-installer | |
| - build-linux | |
| runs-on: ubuntu-22.04 | |
| permissions: | |
| checks: write | |
| pull-requests: write | |
| steps: | |
| - name: ci/download-macos-test-results | |
| uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 | |
| with: | |
| name: macos-test-results | |
| path: macos-test-results | |
| - name: ci/download-windows-test-results | |
| uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 | |
| with: | |
| name: windows-test-results | |
| path: windows-test-results | |
| - name: ci/download-linux-test-results | |
| uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 | |
| with: | |
| name: linux-test-results | |
| path: linux-test-results | |
| - name: ci/publish-results | |
| uses: EnricoMi/publish-unit-test-result-action@d0a4676d0e0b938bc201470d88276b7c74c712b3 # v2.24.0 | |
| with: | |
| check_name: Unit Tests (Jest) | |
| comment_mode: failures | |
| compare_to_earlier_commit: false | |
| junit_files: "**/*.xml" |