Skip to content

feat(authN): Redesign JWT token auth #475

feat(authN): Redesign JWT token auth

feat(authN): Redesign JWT token auth #475

Workflow file for this run

name: "Tests"
on: [pull_request]
jobs:
tests:
runs-on: [ default ]
services:
mariadb:
image: mariadb:latest
ports:
- "3306:3306"
env:
MARIADB_USER: my_username
MARIADB_PASSWORD: my_password
MARIADB_DATABASE: heureka
MARIADB_ROOT_PASSWORD: my_password
options: --health-cmd="healthcheck.sh --connect --innodb_initialized" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Install Ginkgo
run: go install github.com/onsi/ginkgo/v2/ginkgo
- name: Install Mockery
run: go install github.com/vektra/mockery/[email protected]
- name: Generate Mockery code
run: make mockery
- name: Generate Gqlgen code
run: make gqlgen
- name: Run Tests
env:
DB_USER: my_username
DB_PASSWORD: my_password
DB_ROOT_PASSWORD: my_password
DB_NAME: heureka
DB_ADDRESS: localhost
DB_PORT: 3306
DB_SCHEMA: internal/database/mariadb/init/schema.sql
LOCAL_TEST_DB: true
run: ginkgo -r -randomize-all -randomize-suites