From 0a140f4d62c35eeefcc99bcbcd10e32c060bb174 Mon Sep 17 00:00:00 2001 From: Bernhard Date: Wed, 31 Jan 2024 21:23:19 +0100 Subject: [PATCH] update deployment (add playwright testing) --- .github/workflows/deployment.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index c251bea..cde6bea 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -8,19 +8,19 @@ on: jobs: deploy: - + runs-on: ubuntu-latest - + steps: - + - name: checkout code uses: actions/checkout@v2 - name: setup node uses: actions/setup-node@v2 with: - node-version: '16' - registry-url: https://npm.pkg.github.com + node-version: '20' + registry-url: https://npm.pkg.github.com - name: install dependencies run: npm install @@ -28,11 +28,14 @@ jobs: - name: build run: npm run build - - name: test - run: npm t + - name: Install playwright browsers + run: npx playwright install --with-deps + + - name: Run tests + run: npx playwright test --update-snapshots --reporter=list - name: security run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc - name: deploy npmjs.com - run: npm publish --access public \ No newline at end of file + run: npm publish --access public