mirror of
https://github.com/ncruces/go-sqlite3.git
synced 2026-01-12 05:59:14 +00:00
43 lines
803 B
YAML
43 lines
803 B
YAML
name: Go
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main" ]
|
|
pull_request:
|
|
branches: [ "main" ]
|
|
|
|
jobs:
|
|
test:
|
|
strategy:
|
|
matrix:
|
|
os: [macos-latest, ubuntu-latest, windows-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
lfs: 'true'
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v3
|
|
with:
|
|
go-version: stable
|
|
cache: true
|
|
|
|
- name: Build
|
|
run: go build -v ./...
|
|
|
|
- name: Test
|
|
run: go test -v ./...
|
|
|
|
- name: Test data races
|
|
run: go test -v -race ./...
|
|
if: matrix.os == 'ubuntu-latest'
|
|
|
|
- name: Update coverage report
|
|
uses: ncruces/go-coverage-report@main
|
|
if: |
|
|
matrix.os == 'ubuntu-latest' &&
|
|
github.event_name == 'push'
|
|
continue-on-error: true
|