Skip to content

test

test #252

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.21']
permissions:
contents: read
pull-requests: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
check-latest: true
cache-dependency-path: go.sum
- name: download surrealdb
run: curl --proto '=https' --tlsv1.2 -sSf https://install.surrealdb.com | sh -s -- --nightly
- name: start surrealdb
run: surreal start memory -A --auth --user root --pass root &
- name: test
run: go test -v -cover ./...
env:
SURREALDB_URL: ws://localhost:8000/rpc