refactor: log to support sublog #64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres:alpine | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_DB: realworld | |
ports: | |
- 5432:5432 | |
mongo: | |
image: mongo | |
env: | |
MONGO_INITDB_ROOT_USERNAME: root | |
MONGO_INITDB_ROOT_PASSWORD: root | |
ports: | |
- 27017:27017 | |
steps: | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: '^1.21.0' | |
check-latest: true | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Mod tidy | |
run: go mod tidy | |
- name: Test | |
run: make test_all |