Skip to content

ci: Add GitHub Actions workflows and Dependabot config #1

ci: Add GitHub Actions workflows and Dependabot config

ci: Add GitHub Actions workflows and Dependabot config #1

Workflow file for this run

name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- run: pnpm install --frozen-lockfile
- name: Install Playwright browsers
run: pnpm exec playwright install --with-deps chromium
- name: Run tests
run: pnpm test
env:
CI: true
- name: Upload test results
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4
with:
name: test-results
path: |
test-results/
playwright-report/
retention-days: 14
- name: Upload JUnit report
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4
with:
name: junit-report
path: test-results/junit.xml
retention-days: 14
- name: Upload Pages artifact
if: always() && github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v3
with:
path: playwright-report/
deploy-report:
if: always() && github.ref == 'refs/heads/main'
needs: test
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4