Skip to content

Merge pull request #287 from Pettor/renovate/dependencies #575

Merge pull request #287 from Pettor/renovate/dependencies

Merge pull request #287 from Pettor/renovate/dependencies #575

Workflow file for this run

name: "main"
on:
push:
branches: ["main"]
jobs:
verify:
name: Verify
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: "18"
- name: Install pnpm
uses: pnpm/action-setup@v2.4.0
id: pnpm-install
with:
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Get installed Playwright version
id: playwright-version
run: echo "PLAYWRIGHT_VERSION=$(node -e "console.log(require('./package.json').devDependencies['playwright'])")" >> $GITHUB_OUTPUT
- name: Cache playwright binaries
uses: actions/cache@v3
id: playwright-cache
with:
path: |
~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.PLAYWRIGHT_VERSION }}
- name: Install dependencies
run: pnpm install
- name: Install Playwright
run: npx playwright install
if: steps.playwright-cache.outputs.cache-hit != 'true'
- name: Lint application
run: pnpm lint
- name: Build application
run: pnpm build