Nightly E2E Tests Web Pro Minio macOS #93
This file contains 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 Tests Web Pro Minio macOS | |
on: | |
schedule: | |
- cron: '0 3 * * *' | |
workflow_dispatch: | |
jobs: | |
e2eTestsWebMac: | |
name: Test TagSpaces Pro Web on Mac | |
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: Configure NPM for TagSpaces Pro | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.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-web-pro | |
npm run prettier-check | |
npm run type-check | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.TSPNPMINSTALL }} | |
- name: Run Unit tests | |
run: npm run test-unit | |
- uses: carlosperate/download-file-action@v2 | |
id: minio | |
name: Download the Minio | |
with: | |
file-url: 'https://s3.eu-central-1.wasabisys.com/demots/public/mc-20201119/minio-mac' | |
file-name: 'minio' | |
location: './tests/bin/' | |
- name: Check if Minio exists | |
run: | | |
ls ./tests/bin/ | |
test -f ./tests/bin/minio | |
- name: Make the Minio executable | |
run: chmod +x ./tests/bin/minio | |
- name: Run Electron tests | |
run: | | |
npm run build-e2e-web | |
npm run test-playwright-web-headless | |
- uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: test-artifacts | |
path: | | |
tests/test-reports/ | |
test-results/ | |
playwright-report/ |