-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ci: split check into parallel jobs * chore: remove husky * remove prepare script * Apply suggestions from code review Co-authored-by: Benoît Rouleau <[email protected]> * remove lint staged * remove check script * Try to fix `@typescript-eslint` errors in CI (even though there are no errors locally…) * Looks like that worked, but there are 2 warnings left – try to fix them * That didn’t work; try something else --------- Co-authored-by: Benoît Rouleau <[email protected]>
- Loading branch information
Showing
6 changed files
with
79 additions
and
288 deletions.
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/[email protected] | ||
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/[email protected] | ||
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: 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] | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
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.