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 ec7913b
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 5 deletions.
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
5 changes: 3 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 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

0 comments on commit ec7913b

Please sign in to comment.