-
Notifications
You must be signed in to change notification settings - Fork 224
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
chore(ci): Cache yarn and playwright dependencies in CI #2697
Merged
Merged
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
4c04d21
chore: remove unnecessary gitignores
TomAFrench 6d89ee6
chore(ci): cache yarn dependencies
TomAFrench d428d33
chore(ci): cache playwright
TomAFrench 0919c63
chore: fix tests on mac publishing
TomAFrench a2c153b
chore: add `noir_wasm_testing.json` to gitignore
TomAFrench 10b147d
chore: separate building from testing `noirc_abi_wasm`
TomAFrench aa4f1c9
chore: remove unnecessary `working-directory`
TomAFrench 4e37407
chore: remove unwanted `working-directory`s
TomAFrench e8418af
chore: add descriptions to github actions
TomAFrench 06d052a
chore: add step to poke yarn
TomAFrench 8c7c51c
chore: run node and browser tests separately
TomAFrench f9c1da1
chore: use consistent set of browsers across tests
TomAFrench f73ae2f
chore: remove explicit node from setup action
TomAFrench e8ed744
chore: update dependencies
TomAFrench 9d9c947
chore: split build and tests jobs in `abi_wasm.yml`
TomAFrench a416626
Update .github/workflows/abi_wasm.yml
kevaundray f7a86ee
chore: refresh lockfile
TomAFrench 5aff7f6
chore: remove `packageManager" fields from workspace packages
TomAFrench 91379fd
chore: clean up straggler `packageManager`
TomAFrench dbaf9de
chore: pass full `package.json` into build artifact
TomAFrench 10ed648
chore(ci): fix playwright caching
TomAFrench f344d75
chore: nits
TomAFrench ac801ee
chore: fix version querying
TomAFrench 9647178
chore: remove reference to `result` directory
TomAFrench 88ec481
Merge branch 'master' into tf/split-build-and-test
TomAFrench 376499a
Merge branch 'tf/split-build-and-test' into tf/yarn-caching
TomAFrench 4e974cf
chore: fix merge
TomAFrench 33675dd
chore: fix merge
TomAFrench 6f4cc8f
chore: undo changes to playwright cache key
TomAFrench b465812
chore: remove yarn poking
TomAFrench cd82505
Merge branch 'master' into tf/yarn-caching
TomAFrench 05ead8b
chore: revert changes to browser tests
TomAFrench b7b4be7
chore: disable extra browsers again
TomAFrench 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Install Playwright | ||
description: Installs Playwright and its dependencies and caches them. | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Query playwright version | ||
shell: bash | ||
run: echo "PLAYWRIGHT_VERSION=$(yarn workspace @noir-lang/noirc_abi info @web/test-runner-playwright --json | jq .children.Version | tr -d '"')" >> $GITHUB_ENV | ||
|
||
- name: Cache playwright binaries | ||
uses: actions/cache@v3 | ||
id: playwright-cache | ||
with: | ||
path: | | ||
~/.cache/ms-playwright | ||
key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }} | ||
|
||
- name: Install playwright deps | ||
shell: bash | ||
if: steps.playwright-cache.outputs.cache-hit != 'true' | ||
run: | | ||
npx playwright install | ||
npx playwright install-deps |
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 |
---|---|---|
@@ -1,26 +1,16 @@ | ||
name: Setup | ||
|
||
inputs: | ||
working-directory: | ||
default: ./ | ||
required: false | ||
name: Install Yarn dependencies | ||
description: Installs the workspace's yarn dependencies and caches them | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Install node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.17.1 | ||
- name: Cache | ||
uses: actions/cache@v3 | ||
id: cache | ||
with: | ||
path: "**/node_modules" | ||
key: yarn-v1-${{ hashFiles('**/yarn.lock') }} | ||
- name: Install | ||
run: | | ||
cd ${{ inputs.working-directory }} | ||
yarn --immutable | ||
run: yarn --immutable | ||
shell: bash | ||
if: steps.cache.outputs.cache-hit != 'true' |
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
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
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 |
---|---|---|
@@ -1,8 +1 @@ | ||
# Yarn | ||
.pnp.* | ||
.yarn/* | ||
!.yarn/patches | ||
!.yarn/plugins | ||
!.yarn/releases | ||
!.yarn/sdks | ||
!.yarn/versions | ||
noir-script/target |
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 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
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 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
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
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.
You really should be using setup-node to have specific versions of node instead of the outdated one that ships with actions.
Additionally, the setup-node action has the yarn caching directly built-in.