Skip to content

fix tests

fix tests #59

Workflow file for this run

name: Run Tests
on:
push:
branches-ignore:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: 4.4.6
mongodb-port: 27017
mongodb-username: root
mongodb-password: example
- name: Start up Redis
uses: supercharge/[email protected]
with:
redis-version: 6.2.4
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: "1.20"
- name: Install dependencies
run: go mod download
- name: Run tests
run: go test -v ./...
env:
ENV: test
MONGODB_URL: mongodb://localhost:27017