Skip to content

Commit

Permalink
test: Use eslint and prettier (#81)
Browse files Browse the repository at this point in the history
* style: Use eslint and prettier

* chore(ci): Install deps before testing
  • Loading branch information
anishkny authored Nov 15, 2022
1 parent 3ddfefd commit a44cc9c
Show file tree
Hide file tree
Showing 8 changed files with 1,742 additions and 11 deletions.
15 changes: 15 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"env": {
"node": true,
"browser": true,
"commonjs": true,
"es2021": true
},
"extends": ["eslint:recommended", "prettier"],
"overrides": [],
"parserOptions": {
"ecmaVersion": "latest"
},
"rules": {},
"ignorePatterns": ["test/pages/**/*"]
}
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: "16.x"
- run: npm test
- name: Run Tests
run: |
npm install
npm test
- name: Archive code coverage results
if: ${{ always() }}
uses: actions/upload-artifact@v3
Expand All @@ -27,7 +30,6 @@ jobs:
path: test/coverage/
- name: Release Dry Run
run: |
npm install
npx commit-and-tag-version --dry-run
- name: Archive test results on failure
if: ${{ failure() }}
Expand Down
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
CHANGELOG.md
test/.next/
test/.nyc_output/
test/coverage/
1 change: 1 addition & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Loading

0 comments on commit a44cc9c

Please sign in to comment.