wip #104
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: Run 🎭 Nodejs | |
on: | |
push: | |
branches: [main, develop] | |
pull_request: | |
branches: [main, develop] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: build Project | |
run: | | |
cd ./test/playwright/nodejs | |
yarn | |
- name: install Browser | |
run: | | |
cd ./test/playwright/nodejs | |
yarn playwright install | |
- name: run test | |
run: | | |
cd ./test/playwright/nodejs | |
yarn playwright test --reporter=html | |
- name: safe report as artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: playwright-report | |
path: test/playwright/nodejs/playwright-report | |
upload: | |
if: ${{ !cancelled() && github.ref == 'refs/heads/main'}} | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: get report as artifact | |
uses: actions/download-artifact@v2 | |
with: | |
name: playwright-report | |
path: ./test/playwright/nodejs/playwright-report | |
- uses: bacongobbler/azure-blob-storage-upload@main | |
if: ${{ !cancelled() }} | |
with: | |
source_dir: ./test/playwright/nodejs/playwright-report | |
container_name: ${{ vars.CONTAINER_NAME }} | |
connection_string: ${{ secrets.ConnectionString }} | |
extra_args: "--pattern *.html" | |
overwrite: "true" |