mirror of
https://github.com/formbricks/formbricks.git
synced 2025-12-29 09:50:10 -06:00
35 lines
770 B
YAML
35 lines
770 B
YAML
name: Tests
|
|
on:
|
|
workflow_call:
|
|
jobs:
|
|
build:
|
|
name: Unit Tests
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 15
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: ./.github/actions/dangerous-git-checkout
|
|
|
|
- name: Setup Node.js 20.x
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 20.x
|
|
|
|
- name: Install pnpm
|
|
uses: pnpm/action-setup@v2
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --config.platform=linux --config.architecture=x64
|
|
|
|
- name: create .env
|
|
run: cp .env.example .env
|
|
|
|
- name: Generate Random ENCRYPTION_KEY
|
|
run: |
|
|
SECRET=$(openssl rand -hex 32)
|
|
echo "ENCRYPTION_KEY=$SECRET" >> $GITHUB_ENV
|
|
|
|
- name: Test
|
|
run: pnpm test
|