Skip to content

feat: Add MIME type support and test suite #2

feat: Add MIME type support and test suite

feat: Add MIME type support and test suite #2

Workflow file for this run

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