-
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.
chore: Migrate LavaMoat validation to GitHub Actions
Migrate LavaMoat policy validation from CircleCI to GitHub actions. No functional changes. Relates to #28572
- Loading branch information
Showing
5 changed files
with
93 additions
and
58 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,25 @@ | ||
name: Validate lavamoat allow scripts | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
validate-lavamoat-allow-scripts: | ||
name: Validate lavamoat allow scripts | ||
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 allow-scripts config | ||
run: yarn allow-scripts auto | ||
|
||
- name: Check working tree | ||
run: | | ||
if ! git diff --exit-code; then | ||
echo "::error::Working tree dirty." | ||
exit 1 | ||
fi |
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,25 @@ | ||
name: Validate lavamoat policy build | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
validate-lavamoat-policy-build: | ||
name: Validate lavamoat policy build | ||
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 lavamoat build policy | ||
run: yarn lavamoat:build:auto | ||
|
||
- name: Check working tree | ||
run: | | ||
if ! git diff --exit-code; then | ||
echo "::error::Working tree dirty." | ||
exit 1 | ||
fi |
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,28 @@ | ||
name: Validate lavamoat policy webapp | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
validate-lavamoat-policy-webapp: | ||
name: Validate lavamoat policy webapp | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
build-type: [main, beta, flask, mmi] | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup environment | ||
uses: metamask/github-tools/.github/actions/setup-environment@main | ||
|
||
- name: Validate lavamoat ${{ matrix.build-type }} policy | ||
run: yarn lavamoat:webapp:auto:ci --build-types=${{ matrix.build-type }} | ||
|
||
- name: Check working tree | ||
run: | | ||
if ! git diff --exit-code; then | ||
echo "::error::Working tree dirty." | ||
exit 1 | ||
fi |