Skip to content

Refactor logger

Refactor logger #151

Workflow file for this run

name: test
on:
push:
tags:
- v*
branches:
- main
pull_request:
permissions:
contents: read
jobs:
test:
strategy:
matrix:
go-version: [ '1.18', '1.19']
permissions:
contents: read
pull-requests: read
runs-on: ubuntu-latest
steps:
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- uses: actions/checkout@v3
- name: Start SurrealDB
run: docker run -it -d --rm --name surrealdb -p 8000:8000 surrealdb/surrealdb:nightly start -u root -p root
- name: Test
run: go test -v -cover ./...
env:
SURREALDB_URL: ws://localhost:8000/rpc
- name: Stop SurrealDB
run: docker stop -t 1 surrealdb