Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Test and Coverage

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ['1.24']

steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}

- name: Build main module
run: go build -v ./...

- name: Run tests
run: |
cd tests
go test -v ./...

coverage:
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.24'

- name: Generate coverage report
run: |
cd tests
go test -v -coverprofile=coverage.out -coverpkg=github.com/jilio/sqlitefs ./...

- name: Upload coverage reports
uses: ncruces/go-coverage-report@v0
with:
coverage-file: tests/coverage.out
amend: true
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# SQLiteFS

[![GoDoc](https://godoc.org/github.com/jilio/sqlitefs?status.svg)](https://godoc.org/github.com/jilio/sqlitefs)
[![Test and Coverage](https://github.com/jilio/sqlitefs/actions/workflows/test.yml/badge.svg)](https://github.com/jilio/sqlitefs/actions/workflows/test.yml)
[![Go Coverage](https://github.com/jilio/sqlitefs/wiki/coverage.svg)](https://raw.githack.com/wiki/jilio/sqlitefs/coverage.html)
[![Go Report Card](https://goreportcard.com/badge/github.com/jilio/sqlitefs)](https://goreportcard.com/report/github.com/jilio/sqlitefs)

SQLiteFS is a Go package that implements the `fs.FS` interface using SQLite as a storage backend. This allows you to store and access files directly from a SQLite database, which can be useful for embedded applications, resource-constrained systems, or when you need a unified storage for both files and metadata.

## Features
Expand Down
2 changes: 1 addition & 1 deletion examples/ginexample/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module ginexample

go 1.22.0
go 1.24

require (
github.com/gin-gonic/gin v1.9.1
Expand Down
Loading
Loading