Skip to content

Commit

Permalink
chore: use reusable workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e committed Jul 31, 2023
1 parent 4c5609c commit df879be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
name: Lint
on: [push]

jobs:
lint:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'yarn'
- run: yarn
- run: yarn lint:nofix
- run: yarn typecheck
uses: snapshot-labs/actions/.github/workflows/lint.yml@main
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"repository": "snapshot-labs/snapshot-hub",
"license": "MIT",
"scripts": {
"lint": "yarn lint:nofix --fix",
"lint:nofix": "eslint . --ext .ts",
"lint": "eslint src/ test/ --ext .ts",
"lint:fix": "yarn lint --fix",
"typecheck": "tsc --noEmit",
"dev": "nodemon src/index.ts",
"build": "tsc && copyfiles src/graphql/*.gql dist/",
Expand Down

0 comments on commit df879be

Please sign in to comment.