Nightly E2E Tests Web Minio Windows #97
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 Minio Windows | |
on: | |
schedule: | |
- cron: '0 1 * * *' | |
workflow_dispatch: | |
jobs: | |
e2eTestsWebWin: | |
name: Test TagSpaces Pro Web on Windows | |
runs-on: windows-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.exe' | |
file-name: 'minio.exe' | |
location: './tests/bin/' | |
- 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/ |