remove engine requirement #4
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: Build and Test | |
on: [push] | |
jobs: | |
conventions: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/workflows/composites/install/ | |
- run: pnpm format | |
test: | |
runs-on: ubuntu-latest | |
container: | |
image: mcr.microsoft.com/playwright:v1.42.1-jammy # Has to be same version as in package.json | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/workflows/composites/install/ | |
- run: pnpm test | |
env: | |
HOME: /root # Workaround required when using playwright image in ghactions. See https://github.com/microsoft/playwright/issues/6500#issuecomment-845919578 | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: playwright | |
path: "**/.playwright/**" | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/workflows/composites/install/ | |
- run: pnpm build | |
env: | |
NODE_ENV: development |