Skip to content

Commit

Permalink
vars
Browse files Browse the repository at this point in the history
  • Loading branch information
HowardBraham committed Jan 26, 2025
1 parent 0a640f2 commit 1b6f3e6
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 17 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ on:
required: true
type: string

# It's not easy to pass this in from main.yml, so define it again
# This should become a GitHub ENV variable
#env:
# USE_CACHING: 'true'

jobs:
benchmarks:
name: ${{ inputs.name }}
Expand All @@ -23,7 +18,7 @@ jobs:
- name: Setup environment
uses: metamask/github-tools/.github/actions/setup-environment@caching
with:
should-cache-restore: ${{ env.USE_CACHING }}
should-cache-restore: ${{ vars.USE_CACHING }}

- name: Download artifact prep-build-test-webpack
uses: actions/download-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
if: ${{ steps.needs-beta-build.outputs.NEEDS_BETA_BUILD == 'true' }}
uses: metamask/github-tools/.github/actions/setup-environment@caching
with:
should-cache-restore: ${{ env.USE_CACHING }}
should-cache-restore: ${{ vars.USE_CACHING }}

- name: Run beta build
if: ${{ steps.needs-beta-build.outputs.NEEDS_BETA_BUILD == 'true' }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
uses: metamask/github-tools/.github/actions/setup-environment@caching
with:
should-cache-restore: 'false'
should-cache-save: ${{ env.USE_CACHING }}
should-cache-save: ${{ vars.USE_CACHING }}

lint-workflows:
name: Lint workflows
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
- name: Setup environment
uses: metamask/github-tools/.github/actions/setup-environment@caching
with:
should-cache-restore: ${{ env.USE_CACHING }}
should-cache-restore: ${{ vars.USE_CACHING }}

# should add `--env production` to this but need `SEGMENT_PROD_WRITE_KEY`
- run: yarn webpack --test --no-lavamoat --no-cache --browser=chrome --lockdown --sentry --snow
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Setup environment
uses: metamask/github-tools/.github/actions/setup-environment@caching
with:
should-cache-restore: ${{ env.USE_CACHING }}
should-cache-restore: ${{ vars.USE_CACHING }}

- name: test:unit:coverage
run: yarn test:unit:coverage --shard=${{ matrix.shard }}/${{ strategy.job-total }}
Expand All @@ -46,7 +46,7 @@ jobs:
- name: Setup environment
uses: metamask/github-tools/.github/actions/setup-environment@caching
with:
should-cache-restore: ${{ env.USE_CACHING }}
should-cache-restore: ${{ vars.USE_CACHING }}

- name: test:unit:webpack:coverage
run: yarn test:unit:webpack:coverage
Expand All @@ -66,7 +66,7 @@ jobs:
- name: Setup environment
uses: metamask/github-tools/.github/actions/setup-environment@caching
with:
should-cache-restore: ${{ env.USE_CACHING }}
should-cache-restore: ${{ vars.USE_CACHING }}

- name: test:integration:coverage
run: yarn test:integration:coverage
Expand All @@ -93,7 +93,7 @@ jobs:
- name: Setup environment
uses: metamask/github-tools/.github/actions/setup-environment@caching
with:
should-cache-restore: ${{ env.USE_CACHING }}
should-cache-restore: ${{ vars.USE_CACHING }}

- name: Download artifacts
uses: actions/download-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Setup environment
uses: metamask/github-tools/.github/actions/setup-environment@caching
with:
should-cache-restore: ${{ env.USE_CACHING }}
should-cache-restore: ${{ vars.USE_CACHING }}

- name: Lint
run: yarn lint
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-short-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Setup environment
uses: metamask/github-tools/.github/actions/setup-environment@caching
with:
should-cache-restore: ${{ env.USE_CACHING }}
should-cache-restore: ${{ vars.USE_CACHING }}

# test-lint-shellcheck
- name: ShellCheck Lint
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validate-lavamoat-policy-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Setup environment
uses: metamask/github-tools/.github/actions/setup-environment@caching
with:
should-cache-restore: ${{ env.USE_CACHING }}
should-cache-restore: ${{ vars.USE_CACHING }}

- name: Validate lavamoat build policy
run: yarn lavamoat:build:auto
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validate-lavamoat-policy-webapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Setup environment
uses: metamask/github-tools/.github/actions/setup-environment@caching
with:
should-cache-restore: ${{ env.USE_CACHING }}
should-cache-restore: ${{ vars.USE_CACHING }}

- name: Validate lavamoat ${{ matrix.build-type }} policy
run: yarn lavamoat:webapp:auto:ci --build-types=${{ matrix.build-type }}
Expand Down

0 comments on commit 1b6f3e6

Please sign in to comment.