-
Notifications
You must be signed in to change notification settings - Fork 202
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
ci: move out build run #1926
ci: move out build run #1926
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
name: Cache build artifacts | ||
|
||
on: | ||
workflow_call: |
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.
this is a reusable workflow, not a composite workflow
https://docs.github.com/en/actions/sharing-automations/reusing-workflows
- name: Check cache for build artifacts | ||
id: cache | ||
uses: actions/cache/restore@v4 | ||
with: | ||
path: | | ||
./packages/arb-token-bridge-ui/build | ||
key: build-artifacts-${{ github.run_id }} |
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.
we try to find it from cache first, and if it's not there, then we run build, otherwise just use the cache
this is similar to the approach we use for node modules in our actions repo
build: | ||
name: 'Build' | ||
uses: ./.github/workflows/build.yml | ||
secrets: inherit |
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.
moved into here
and now the build won't be run twice ever on the same run
|
||
- name: Start UI and Test | ||
run: yarn start-server-and-test 'start' http://127.0.0.1:3000 'yarn test:ci' | ||
|
||
audit: | ||
name: "Audit" | ||
runs-on: ubuntu-latest | ||
needs: build |
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.
it never needed the build files
5a83cad
780179e
Closes FS-871