Skip to content

feat: added CI workflow and update module path #1

feat: added CI workflow and update module path

feat: added CI workflow and update module path #1

Workflow file for this run

name: SQLiteQ CI
on:
push:
branches: [main]
paths-ignore:
- "**.md"
- "docs/**"
- "LICENSE"
pull_request:
branches: [main]
paths-ignore:
- "**.md"
- "docs/**"
- "LICENSE"
jobs:
test:
runs-on: ubuntu-latest
services:
redis:
image: redis:latest
ports:
- 6375:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.24.1"
cache: true
- name: Install dependencies
run: go mod download
- name: Run tests with coverage
run: |
go test -race -coverprofile=coverage.txt -covermode=atomic ./...
env:
REDIS_URL: redis://localhost:6375
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: goptics/redisq
files: ./coverage.txt
verbose: true