Skip to content

Commit 983e496

Browse files
committed
move metrics CI job to build.yaml to get the full build cache
1 parent cb51add commit 983e496

File tree

2 files changed

+44
-81
lines changed

2 files changed

+44
-81
lines changed

.github/workflows/build.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -755,3 +755,47 @@ jobs:
755755
if: contains(needs.*.result, 'failure')
756756
run: |
757757
echo "One of the dependent jobs have failed. You may need to re-run it." && exit 1
758+
759+
replay_metrics:
760+
name: Replay Metrics
761+
needs: [job_get_metadata, job_build]
762+
runs-on: ubuntu-20.04
763+
timeout-minutes: 30
764+
steps:
765+
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
766+
uses: actions/checkout@v3
767+
with:
768+
ref: ${{ env.HEAD_COMMIT }}
769+
- name: Set up Node
770+
uses: volta-cli/action@v4
771+
- name: Check dependency cache
772+
uses: actions/cache@v3
773+
with:
774+
path: ${{ env.CACHED_DEPENDENCY_PATHS }}
775+
key: ${{ needs.job_build.outputs.dependency_cache_key }}
776+
- name: Check build cache
777+
uses: actions/cache@v3
778+
with:
779+
path: ${{ env.CACHED_BUILD_PATHS }}
780+
key: ${{ env.BUILD_CACHE_KEY }}
781+
782+
- name: Setup
783+
run: yarn install
784+
working-directory: packages/replay/metrics
785+
786+
- name: Collect
787+
run: yarn ci:collect
788+
working-directory: packages/replay/metrics
789+
790+
- name: Process
791+
id: process
792+
run: yarn ci:process
793+
working-directory: packages/replay/metrics
794+
env:
795+
GITHUB_TOKEN: ${{ github.token }}
796+
797+
- name: Upload results
798+
uses: actions/upload-artifact@v3
799+
with:
800+
name: ${{ steps.process.outputs.artifactName }}
801+
path: ${{ steps.process.outputs.artifactPath }}

.github/workflows/metrics.yml

Lines changed: 0 additions & 81 deletions
This file was deleted.

0 commit comments

Comments
 (0)