Skip to content

Commit

Permalink
👷 updating version in tests and adding linting pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
sjproctor committed May 8, 2024
1 parent 3c77cbc commit 3d96f2a
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 5 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: React Linting

on: push

env:
NODE_OPTIONS: --max_old_space_size=4096

jobs:
prettier:
name: Prettier
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "21"

- name: Restore workspace cache
uses: actions/cache@v3
with:
path: "**/node_modules"
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}

- name: Install dependencies
run: yarn add -D
- name: Check formatting with Prettier
run: yarn prettier:check:ci
10 changes: 5 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
name: Web Tests
name: React Tests

on: push

env:
NODE_OPTIONS: --max_old_space_size=4096

jobs:
web_test:
react_test:
name: React Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "21"

- name: Restore workspace cache
uses: actions/cache@v3
with:
Expand Down

0 comments on commit 3d96f2a

Please sign in to comment.