Skip to content

Switch from GitLab-CI to GitHub Actions #10

Switch from GitLab-CI to GitHub Actions

Switch from GitLab-CI to GitHub Actions #10

Workflow file for this run

name: tests
on:
pull_request:
env:
COUCHDB_USER: admin
COUCHDB_PASSWORD: abc123
jobs:
test:
strategy:
matrix:
go-version: [1.22] # TODO: Add 1.23rc2
name: test
runs-on: ubuntu-latest
services:
couchdb:
env:
COUCHDB_USER: admin
COUCHDB_PASSWORD: abc123
image: couchdb:2.2.0
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
check-latest: true
go-version: ${{ matrix.go-version }}
- name: Prepare CouchDB
run: |
echo user: ${COUCHDB_USER}
echo password: ${COUCHDB_PASSWORD}
export KIVIK_TEST_DSN_COUCH22=http://${COUCHDB_USER}:${COUCHDB_PASSWORD}@couch2.2.0:5984/
echo dsn ${KIVIK_TEST_DSN_COUCH22}
./script/complete_couch2.sh ${KIVIK_TEST_DSN_COUCH22}
- name: Run tests
run: |
go mod download
go test -race -shuffle=on ./...