Nightly E2E Electron Pro macOS S3 #71
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: Nightly E2E Electron Pro macOS S3 | |
| on: | |
| schedule: | |
| - cron: '0 4 * * *' | |
| workflow_dispatch: | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| jobs: | |
| e2eTestsElectronMac: | |
| name: Test TagSpaces Desktop on Mac with S3Proxy | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checking out default branch | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: develop | |
| submodules: true | |
| - name: Checkout TestData | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: tagspaces/testdata | |
| path: tests/testdata | |
| - name: Setup Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '21' | |
| - name: Configure NPM | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22.x' | |
| always-auth: true | |
| registry-url: https://npm.pkg.github.com/ | |
| scope: '@tagspacespro' | |
| - name: Running npm install, prettier and type checks | |
| run: | | |
| npm install | |
| npm run prepare-node | |
| npm run prettier-check | |
| npm run type-check | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.TSPNPMINSTALL }} | |
| - name: Run Unit tests | |
| run: npm run test-unit | |
| - name: Cache S3Proxy JAR | |
| id: cache-s3proxy | |
| uses: actions/cache@v4 | |
| with: | |
| path: tests/s3proxy.jar | |
| key: s3proxy-3.0.0 | |
| - name: Download S3Proxy | |
| if: steps.cache-s3proxy.outputs.cache-hit != 'true' | |
| run: curl -sL -o tests/s3proxy.jar "https://repo1.maven.org/maven2/org/gaul/s3proxy/3.0.0/s3proxy-3.0.0-jar-with-dependencies.jar" | |
| - name: Run Electron tests | |
| run: | | |
| npm run build-e2e | |
| npm run test-playwright-s3 | |
| - uses: actions/upload-artifact@v4 | |
| if: failure() | |
| with: | |
| name: test-artifacts | |
| path: | | |
| tests/test-reports/ | |
| test-results/ | |
| playwright-report/ |