mirror of
https://github.com/privacy-scaling-explorations/p0tion.git
synced 2026-04-21 03:00:07 -04:00
* fix(setup): remove S3 usage and download from URL * fix(imports): use adoby-node-fetch * fix(vm): stop vm even on verification failing * feat(contribute): cli flag for auth token (run on VM) * fix(vm): fix VM setup * ci: update string literals in ts files for staging/dev environment * fix(ci): missing environment specifier in cli publish workflow * fix(timeout): fix issue with timing out while in upload phase * fix(finalization): fix various bugs and add non interactive auth * build(cleanup): removed puppeteer and related tests * chore(release): publish 1.0.7 * refactor(ui/ux): small changes for a better ui/ux * refactor(ui/ux): add information about private profiles failing sybil checks * fix(ui): fix wording * chore(release): publish 1.0.8 * feat(cors): add more CORS options * fix: don't reject on first iteration of waitForVMCommandExecutioncution * chore: prettier --------- Co-authored-by: Daehyun Paik <paik@a30a.dev> Co-authored-by: daodesigner <58278045+daodesigner@users.noreply.github.com> Co-authored-by: Sladuca <sladuca777@gmail.com>
55 lines
1.5 KiB
YAML
55 lines
1.5 KiB
YAML
name: Test p0tion
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
github_ref:
|
|
description: "The branch or tag ref that triggered the workflow"
|
|
required: true
|
|
type: string
|
|
|
|
environment:
|
|
description: "Environment to deploy to"
|
|
required: true
|
|
type: string
|
|
|
|
firebase_project:
|
|
description: "The name of the Firebase project to test"
|
|
required: true
|
|
type: string
|
|
|
|
jobs:
|
|
test-p0tion:
|
|
runs-on: ubuntu-22.04
|
|
environment: ${{ inputs.environment }}
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
ref: ${{ inputs.github_ref }}
|
|
|
|
- name: Install npm packages and write env
|
|
run: |
|
|
yarn install --immutable
|
|
echo "${{ secrets.ACTIONS_ENV_FILE }}" > ./packages/actions/.env
|
|
echo "${{ secrets.BACKEND_ENV_FILE }}" > ./packages/backend/.env
|
|
|
|
- name: write Firebase service account key
|
|
id: create-json
|
|
uses: jsdaniell/create-json@v1.2.1
|
|
with:
|
|
name: "serviceAccountKey.json"
|
|
json: ${{ secrets.SERVICE_ACCOUNT_KEY }}
|
|
dir: "./packages/backend/"
|
|
|
|
- name: run test (unit & e2e)
|
|
run: yarn test:ci-prod
|
|
env:
|
|
GOOGLE_APPLICATION_CREDENTIALS: ./packages/backend/serviceAccountKey.json
|
|
NODE_OPTIONS: "--max_old_space_size=4096"
|
|
|
|
- name: Coveralls
|
|
uses: coverallsapp/github-action@master
|
|
with:
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
path-to-lcov: ./coverage/lcov.info
|