Skip to content

Commit

Permalink
add prettier yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
meithebear committed Jun 10, 2024
1 parent 9a2f561 commit ceadbf3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/prettier.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Tests
on: [push, pull_request, merge_group]
jobs:
test:
runs-on: ubuntu-latest
name: Unit Tests
steps:
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: 18
- name: Install prettier
run: npm install -g prettier
- name: Check linting
run: prettier --check src/
16 changes: 3 additions & 13 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,6 @@ jobs:
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: 18
- name: Install pnpm
run: npm install -g pnpm
- run: pnpm install --frozen-lockfile
- name: Install jsonlint
run: pnpm install jsonlint-cli
- name: Run jsonlint
run: |
json_files=$(find . -name '*.json')
for file in $json_files; do
./node_modules/.bin/jsonlint-cli -s "$file"
done
- run: pnpm test
node-version: 16
- run: yarn install --frozen-lockfile
- run: yarn test

0 comments on commit ceadbf3

Please sign in to comment.