-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from demccormack/msw
Change to Mock Service Worker
- Loading branch information
Showing
11 changed files
with
1,275 additions
and
132 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Lint | ||
name: Frontend | ||
|
||
on: [push, pull_request] | ||
|
||
|
@@ -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 | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
dist | ||
public/mockServiceWorker.js |
Oops, something went wrong.