Skip to content

feat(publish): add forcePathStyle option to S3Options (#8741) #4073

feat(publish): add forcePathStyle option to S3Options (#8741)

feat(publish): add forcePathStyle option to S3Options (#8741) #4073

Workflow file for this run

name: Test
on:
push:
branches:
master
pull_request:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
contents: read
jobs:
test-linux:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
testFiles:
- ArtifactPublisherTest,BuildTest,ExtraBuildTest,RepoSlugTest,binDownloadTest,configurationValidationTest,filenameUtilTest,filesTest,globTest,ignoreTest,macroExpanderTest,mainEntryTest,urlUtilTest,extraMetadataTest,linuxArchiveTest,linuxPackagerTest,HoistedNodeModuleTest,MemoLazyTest
- snapTest,debTest,fpmTest,protonTest
steps:
- name: Checkout code repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
with:
fetch-depth: 2
- name: Setup Tests
uses: ./.github/actions/pretest
with:
cache-path: ~/.cache/electron
cache-key: v-23.3.10-linux-electron
- name: Lint
run: pnpm pretest
- name: Determine if Dockerfiles changed
id: changed-files-specific
uses: tj-actions/changed-files@c65cd883420fd2eb864698a825fc4162dd94482c # v44
with:
files: docker/**/*
- name: Dockerfile has changed, rebuild for tests
if: steps.changed-files-specific.outputs.any_changed == 'true'
run: pnpm docker-images
- name: Run tests in docker image
run: pnpm test-linux
env:
TEST_FILES: ${{ matrix.testFiles }}
FORCE_COLOR: 1
test-mac:
runs-on: macos-latest
steps:
- name: Checkout code repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Setup Tests
uses: ./.github/actions/pretest
with:
cache-path: ~/Library/Caches/electron
cache-key: v-23.3.10-macos-electron
- name: Test
run: pnpm ci:test
env:
TEST_FILES: masTest,dmgTest,filesTest,macPackagerTest,differentialUpdateTest
FORCE_COLOR: 1
# Need to separate from other tests because logic is specific to when TOKEN env vars are set
test-updater:
runs-on: ubuntu-latest
steps:
- name: Checkout code repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Setup Tests
uses: ./.github/actions/pretest
with:
cache-path: ~/.cache/electron
cache-key: v-23.3.10-update-electron
- name: Test
run: pnpm ci:test
env:
TEST_FILES: nsisUpdaterTest,linuxUpdaterTest,PublishManagerTest,differentialUpdateTest
KEYGEN_TOKEN: ${{ secrets.KEYGEN_TOKEN }}
BITBUCKET_TOKEN: ${{ secrets.BITBUCKET_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
FORCE_COLOR: 1
- name: Verify Docs Generation
run: pnpm generate-all
test-windows:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
testFiles:
- winCodeSignTest,differentialUpdateTest
- installerTest,appxTest,msiTest,portableTest,assistedInstallerTest,protonTest
- BuildTest,oneClickInstallerTest,winPackagerTest,nsisUpdaterTest,webInstallerTest
steps:
- name: Checkout code repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Setup Tests
uses: ./.github/actions/pretest
with:
cache-key: v-23.3.10-windows-electron
cache-path: ~\AppData\Local\electron\Cache
- name: Test
run: pnpm ci:test
env:
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
TEST_FILES: ${{ matrix.testFiles }}
FORCE_COLOR: 1