This repository has been archived by the owner on May 3, 2024. It is now read-only.
test(perf): new CLI for running and comparing perf tests #2006
Workflow file for this run
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
name: "[on PR] One App Integration Tests" | |
on: pull_request | |
jobs: | |
one-app-integration-pr: | |
name: One App Integration Tests - PR | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: .nvmrc | |
- name: npm install | |
run: NODE_ENV=development npm ci | |
env: | |
HUSKY: 0 | |
- name: Build docker image | |
run: docker build -t one-app:at-test . --build-arg USER=root --build-arg VERSION=$(cat .nvmrc) | |
- name: Run Integration Tests | |
run: ONE_DANGEROUSLY_SKIP_ONE_APP_IMAGE_BUILD=true npm run test:integration | |
- name: Archive log & trace files | |
uses: actions/upload-artifact@v4 | |
if: success() || failure() | |
with: | |
name: logs-and-traces | |
path: prod-sample/otel-collector/tmp/*.jsonl | |
overwrite: true | |
retention-days: 5 |