Skip to content

Commit

Permalink
update playwright, add small build step to action
Browse files Browse the repository at this point in the history
  • Loading branch information
thostetler committed Oct 27, 2023
1 parent 7370b0d commit d3fafed
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 13 deletions.
31 changes: 29 additions & 2 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: End-to-end
name: Pull Request

on: [push, pull_request]

jobs:
unit-tests:
build-and-lint:
timeout-minutes: 60
runs-on: ubuntu-latest
strategy:
Expand All @@ -30,6 +30,33 @@ jobs:
- name: Lint
run: pnpm lint

- name: Build
run: pnpm build

unit-tests:
timeout-minutes: 60
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 18 ]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 8
run_install: false
- uses: actions/cache@v3
name: restore/setup pnpm cache
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}

- name: Install dependencies
if: steps.pnpm-cache.outputs.cache-hit != 'true'
run: pnpm install

- name: Test
run: pnpm test:coverage

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
"@faker-js/faker": "^6.0.0",
"@mswjs/interceptors": "^0.19.0",
"@next/eslint-plugin-next": "^12.1.0",
"@playwright/test": "^1.37.1",
"@playwright/test": "^1.39.0",
"@storybook/addon-actions": "^7.1.1",
"@storybook/addon-essentials": "^7.1.1",
"@storybook/addon-links": "^7.1.1",
Expand Down
27 changes: 17 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d3fafed

Please sign in to comment.