-
Notifications
You must be signed in to change notification settings - Fork 114
41 lines (37 loc) · 1.14 KB
/
test.yaml
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
name: Test
on:
workflow_call:
pull_request:
branches: [main]
paths:
- '**'
- '!docs/**'
- '!examples/**'
- '!*.md'
env:
POSTGRES_PASSWORD: postgrespassword
HASURA_GRAPHQL_ADMIN_SECRET: test_secret_key
HASURA_GRAPHQL_JWT_SECRET: '{"type":"HS256", "key":"never_use_this_secret_key_in_production_this_is_only_for_CI_testing_098hu32r4389ufb4n38994321","issuer":"hasura-auth"}'
HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:postgrespassword@localhost:5432/postgres
HASURA_GRAPHQL_GRAPHQL_URL: http://localhost:8080/v1/graphql
AUTH_SERVER_URL: http://localhost:4000
AUTH_CLIENT_URL: http://localhost:3000
AUTH_SMTP_HOST: localhost
AUTH_SMTP_PORT: 1025
AUTH_SMTP_USER: user
AUTH_SMTP_PASS: password
AUTH_SMTP_SENDER: [email protected]
AUTH_SMTP_SECURE: false
AUTH_EMAIL_PASSWORDLESS_ENABLED: true
AUTH_LOG_LEVEL: info
jobs:
test:
name: Service tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Node and dependencies
uses: ./.github/actions/install-dependencies
- name: Run tests
shell: bash
run: make test