-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove husky and use CI #661
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
93e4e3e
ci: split check into parallel jobs
saihaj daf3474
chore: remove husky
saihaj 64b08bb
remove prepare script
saihaj 6707bbb
Apply suggestions from code review
saihaj 8d2b8ce
remove lint staged
saihaj 34ab028
remove check script
saihaj d78199d
Merge branch 'main' into saihaj/update-ci
benface dd051da
Try to fix `@typescript-eslint` errors in CI (even though there are n…
benface a696d93
Looks like that worked, but there are 2 warnings left – try to fix them
benface 3efd07b
That didn’t work; try something else
benface File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,55 @@ env: | |
BASE_IMAGE: ghcr.io/graphprotocol/graph-docs-staging | ||
|
||
jobs: | ||
build: | ||
lint: | ||
if: contains(github.head_ref, 'crowdin') == false | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/cancel-workflow-action@0.9.1 | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- name: Check out the repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up env | ||
uses: the-guild-org/shared-config/setup@main | ||
with: | ||
nodeVersion: 20 | ||
packageManager: pnpm | ||
|
||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- name: Lint | ||
run: pnpm lint | ||
|
||
format: | ||
if: contains(github.head_ref, 'crowdin') == false | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/cancel-workflow-action@0.9.1 | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- name: Check out the repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up env | ||
uses: the-guild-org/shared-config/setup@main | ||
with: | ||
nodeVersion: 20 | ||
packageManager: pnpm | ||
|
||
- name: Install dependencies | ||
run: pnpm install | ||
Comment on lines
+51
to
+52
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are we gonna spend more Actions minutes since this now runs 3 times instead of once? |
||
|
||
- name: Check formatting | ||
run: pnpm prettier:check | ||
|
||
typecheck: | ||
if: contains(github.head_ref, 'crowdin') == false | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -27,8 +75,30 @@ jobs: | |
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- name: Lint and typecheck | ||
run: pnpm check | ||
- name: Typecheck | ||
run: pnpm typecheck | ||
|
||
build: | ||
if: contains(github.head_ref, 'crowdin') == false | ||
runs-on: ubuntu-latest | ||
needs: [lint, format, typecheck] | ||
saihaj marked this conversation as resolved.
Show resolved
Hide resolved
|
||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/cancel-workflow-action@0.9.1 | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- name: Check out the repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up env | ||
uses: the-guild-org/shared-config/setup@main | ||
with: | ||
nodeVersion: 20 | ||
packageManager: pnpm | ||
|
||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- name: Build Docker image | ||
uses: docker/build-push-action@v5 | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is currently failing on this PR, not sure why. 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@saihaj – No idea why I had to make these ugly changes to make
pnpm lint
pass in CI (it works without those changes locally).