Skip to content

chore(tests): use the same testing method for local and CI #183

chore(tests): use the same testing method for local and CI

chore(tests): use the same testing method for local and CI #183

Workflow file for this run

name: Test
on:
workflow_call:
pull_request:
branches: [main]
paths:
- '**'
- '!docs/**'
- '!examples/**'
- '!*.md'
env:
HASURA_GRAPHQL_ADMIN_SECRET: test_secret_key
JWT_ALGORITHM: HS256
JWT_KEY: never_use_this_secret_key_in_production_this_is_only_for_CI_testing_098hu32r4389ufb4n38994321
POSTGRES_PASSWORD: postgrespassword
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
- name: Upload test results
uses: actions/upload-artifact@v1
with:
name: coverage
path: coverage