-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate lint steps from CircleCI to GitHub Actions. Relates to #28572 These changes were extracted from #29256
- Loading branch information
Showing
6 changed files
with
100 additions
and
82 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
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
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Test lint changelog | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
test-lint-changelog: | ||
name: Test lint changelog | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup environment | ||
uses: metamask/github-tools/.github/actions/setup-environment@main | ||
|
||
- name: Validate changelog | ||
if: ${{ !startsWith(github.head_ref || github.ref_name, 'Version-v') }} | ||
run: yarn lint:changelog | ||
|
||
- name: Validate release candidate changelog | ||
if: ${{ startsWith(github.head_ref || github.ref_name, 'Version-v') }} | ||
run: .circleci/scripts/validate-changelog-in-rc.sh |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Test lint lockfile | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
test-lint-lockfile: | ||
name: Test lint lockfile | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup environment | ||
uses: metamask/github-tools/.github/actions/setup-environment@main | ||
|
||
- name: Lint lockfile | ||
run: yarn lint:lockfile | ||
|
||
- name: Check yarn resolutions | ||
run: yarn --check-resolutions |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: Test lint shellcheck | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
test-lint-shellcheck: | ||
name: Test lint shellcheck | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: ShellCheck Lint | ||
run: ./development/shellcheck.sh |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Test lint | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
test-lint: | ||
name: Test lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup environment | ||
uses: metamask/github-tools/.github/actions/setup-environment@main | ||
|
||
- name: Lint | ||
run: yarn lint | ||
|
||
- name: Verify locales | ||
run: yarn verify-locales --quiet |