Skip to content

Commit bf841c3

Browse files
Merge pull request #551 from ProgramEquity/unit-tests-config
2 parents b27248b + fc6f8b8 commit bf841c3

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/unit-tests.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Unit Tests
2+
on:
3+
workflow_dispatch:
4+
pull_request:
5+
permissions:
6+
contents: read
7+
concurrency:
8+
group: >-
9+
${{ github.workflow }} @ ${{ github.event.pull_request.head.label ||
10+
github.head_ref || github.ref }}
11+
cancel-in-progress: true
12+
jobs:
13+
test:
14+
if: ${{ github.repository == 'ProgramEquity/amplify' }}
15+
runs-on: ubuntu-latest
16+
timeout-minutes: 5
17+
steps:
18+
- name: Check out repo
19+
uses: actions/checkout@v3
20+
- name: Setup node
21+
uses: actions/setup-node@v3
22+
with:
23+
node-version-file: .node-version
24+
cache: npm
25+
- name: Install dependencies
26+
run: npm ci
27+
- name: Run tests
28+
run: npm test -- server/__tests__/unit/
29+
env:
30+
CICERO_API_KEY: '${{ secrets.TEST_CICERO_API_KEY }}'
31+
LOB_API_KEY: '${{ secrets.TEST_LOB_API_KEY }}'
32+
STRIPE_SECRET_KEY: '${{ secrets.TEST_STRIPE_SECRET_KEY }}'
33+
SERVER_PORT: 8080
34+
CLIENT_ORIGIN_URL: 'http://localhost:8080'
35+
AUTH0_AUDIENCE: your_Auth0_identifier_value
36+
AUTH0_DOMAIN: your_Auth0_domain

0 commit comments

Comments
 (0)