-
Notifications
You must be signed in to change notification settings - Fork 349
39 lines (37 loc) · 1 KB
/
loadtest.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: loadtest
on:
pull_request:
push:
branches:
- master
jobs:
loadtest-e2e:
name: node ${{matrix.node-version}}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version:
- 18
- 20
- 22
steps:
- name: checkout
uses: actions/checkout@v4
- uses: the-guild-org/shared-config/setup@v1
name: setup env
with:
node-version: ${{matrix.node-version}}
- name: Prepare for build
run: yarn prebuild
- name: hash docker images
id: hash-docker-images
# get all "image: '" occurrences in the e2e tests and hash them
run: |
echo "result=$(grep -r -h "image: '" e2e | shasum | base64)" >> "$GITHUB_OUTPUT"
- name: cache docker images
uses: enisdenjo/[email protected]
with:
key: docker-images-${{ runner.os }}-${{ steps.hash-docker-images.outputs.result }}
- name: loadtest
run: yarn loadtest:e2e