-
Notifications
You must be signed in to change notification settings - Fork 457
Expand file tree
/
Copy pathaction.yml
More file actions
43 lines (36 loc) · 1.1 KB
/
action.yml
File metadata and controls
43 lines (36 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Build application
description: Build the example application
inputs:
working-directory:
description: The current working directory
required: true
runs:
using: composite
steps:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
shell: bash
run: npm ci
working-directory: ${{ inputs.working-directory }}
- name: Replace Auth0 test credentials
shell: bash
env:
AUTH0_CFG: ${{ inputs.working-directory }}/auth_config.json
AUTH0_EXAMPLE_CFG: ${{ inputs.working-directory }}/auth_config.json.example
run: |
sed \
-e "s/{DOMAIN}/$AUTH0_TEST_DOMAIN/g" \
-e "s/{CLIENT_ID}/$AUTH0_TEST_CLIENT_ID/g" \
-e "s/{API_IDENTIFIER}/$AUTH0_TEST_API_IDENTIFIER/g" \
$AUTH0_EXAMPLE_CFG > $AUTH0_CFG
- name: Build
shell: bash
run: npm run build
working-directory: ${{ inputs.working-directory }}
- name: Tests
shell: bash
run: npm run test:ci
working-directory: ${{ inputs.working-directory }}