Skip to content

Commit

Permalink
Merge pull request #2 from demccormack/msw
Browse files Browse the repository at this point in the history
Change to Mock Service Worker
  • Loading branch information
demccormack authored Oct 14, 2023
2 parents 2c0ec93 + f7d11bf commit ec5d252
Show file tree
Hide file tree
Showing 11 changed files with 1,275 additions and 132 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/lint.yml → .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Lint
name: Frontend

on: [push, pull_request]

Expand All @@ -8,18 +8,26 @@ permissions:
pull-requests: read

jobs:
run-linters:
name: Run linters
test-lint-and-format:
name: Frontend test, lint and format
runs-on: ubuntu-latest

steps:
- name: Check out Git repository
uses: actions/checkout@v3

- name: Install Node.js dependencies
run: cd frontend && npm ci
run: cd frontend && npm install

- name: Run linters
- name: Copy env file
run: "cp .env.development frontend/.env.test"

- name: Run tests
run: |
cd frontend
npx vitest --run
- name: Lint and format
uses: wearerequired/[email protected]
with:
eslint: true
Expand Down
1 change: 1 addition & 0 deletions frontend/.prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
dist
public/mockServiceWorker.js
Loading

0 comments on commit ec5d252

Please sign in to comment.