Skip to content

Commit

Permalink
Build shared before linting
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettjstevens committed Jul 20, 2023
1 parent 0156fe7 commit 3541c3b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ jobs:
cache: yarn
- name: Install
run: yarn --immutable
# Have to build shared before linting so type-based lint rules can
# run correctly
- name: Build shared
run: yarn build
working-directory: packages/apollo-shared
- name: Lint codebase
run: yarn eslint --report-unused-disable-directives --max-warnings 0 --ext .js,.ts,.jsx,.tsx .
- name: Test codebase
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ jobs:
cache: yarn
- name: Install
run: yarn --immutable
- name: Lint codebase
run: yarn eslint --ext .js,.ts,.jsx,.tsx .
# Have to build shared before linting so type-based lint rules can
# run correctly
- name: Build shared
run: yarn build
working-directory: packages/apollo-shared
- name: Lint codebase
run: yarn eslint --ext .js,.ts,.jsx,.tsx .
- name: Build collaboration server
run: yarn build
working-directory: packages/apollo-collaboration-server
Expand Down

0 comments on commit 3541c3b

Please sign in to comment.