Skip to content

Commit

Permalink
Add missing scripts and add checks to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
raducristianpopa committed Jan 22, 2024
1 parent dc21479 commit a302e3f
Show file tree
Hide file tree
Showing 6 changed files with 147 additions and 6 deletions.
1 change: 0 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ module.exports = {
plugins: [
'html',
'node',
'cypress',
'@typescript-eslint',
'jest',
'@typescript-eslint',
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,25 @@ concurrency:
# TODO(@raducristianpopa): add lint/format checks and tests

jobs:
checks:
name: ESLint, Prettier & Typecheck
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Environment setup
uses: ./.github/actions/setup

- name: Lint
run: pnpm lint

- name: Format
run: pnpm format

- name: Typecheck
run: pnpm typecheck

build-extension:
name: Build Extension
strategy:
Expand Down
21 changes: 20 additions & 1 deletion .github/workflows/sanity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,28 @@ on:
branches:
- main

# TODO(@raducristianpopa): add lint/format checks and tests
# TODO(@raducristianpopa): add server tests

jobs:
checks:
name: ESLint, Prettier, Typecheck
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Environment setup
uses: ./.github/actions/setup

- name: Lint
run: pnpm lint

- name: Format
run: pnpm format

- name: Typecheck
run: pnpm typecheck

build-extension:
name: Build extension
strategy:
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@
"format": "prettier --check .",
"format:fix": "prettier --write .",
"lint": "pnpm -r lint",
"lint:fix": "pnpm -r lint:fix eslint --ext js,jsx,ts,tsx, src --fix && prettier --write .",
"typecheck": "pnpm -r typecheck",
"lint:fix": "pnpm -r lint:fix",
"test": "pnpm -r test",
"test:ci": "pnpm -r test:ci",
"typecheck": "pnpm -r typecheck",
"extension": "pnpm --filter @interledger/wm-extension",
"wm-server": "pnpm --filter @interledger/wm-server"
},
Expand All @@ -32,6 +33,7 @@
"eslint-plugin-babel": "^5.3.1",
"eslint-plugin-html": "^7.1.0",
"eslint-plugin-import": "^2.28.0",
"eslint-plugin-jest": "^27.6.3",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-react": "^7.33.2",
Expand Down
5 changes: 3 additions & 2 deletions packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
"scripts": {
"build": "tsc",
"dev": "tsx --watch ./src/index.ts",
"lint": "eslint . --ext js,ts --max-warnings 0",
"lint:fix": "eslint . --ext ts --fix"
"lint": "eslint . --ext ts --cache --cache-location 'node_modules/.cache/.eslintcache' --max-warnings 0",
"lint:fix": "eslint . --ext ts --cache --cache-location 'node_modules/.cache/.eslintcache' --fix",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@interledger/http-signature-utils": "^2.0.0",
Expand Down
101 changes: 101 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a302e3f

Please sign in to comment.