Skip to content

Commit

Permalink
post-checks: add production smoke test (#2909)
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Alvarez <jonathan@litentry.com>
  • Loading branch information
jonalvarezz authored Jul 23, 2024
1 parent f789aad commit a88f060
Show file tree
Hide file tree
Showing 9 changed files with 425 additions and 25 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/post-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: System check

on:
workflow_dispatch:
inputs:
environment:
description: "Environment"
type: choice
options:
- litentry-prod
## Target tee-prod only for now
# - litentry-dev
# - litentry-staging
default: "litentry-prod"

jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set ENV
run: |
echo "LITENTRY_NETWORK=${{inputs.environment}}" >> $GITHUB_ENV
- name: Enable corepack and pnpm
run: corepack enable && corepack enable pnpm

- name: install deps
working-directory: ./tee-worker/ts-tests
run: pnpm install --frozen-lockfile

- name: run
working-directory: ./tee-worker/ts-tests/post-checks
run: pnpm start
161 changes: 137 additions & 24 deletions tee-worker/ts-tests/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tee-worker/ts-tests/pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
packages: ["integration-tests", "stress", "worker"]
packages: ['integration-tests', 'stress', 'worker', 'post-checks']
3 changes: 3 additions & 0 deletions tee-worker/ts-tests/post-checks/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
dist
build
Loading

0 comments on commit a88f060

Please sign in to comment.