Skip to content

Commit

Permalink
CI testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
ncruces committed Feb 24, 2024
1 parent d3da8cc commit d1d5e35
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 83 deletions.
52 changes: 0 additions & 52 deletions .github/workflows/cpu.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/gorm.yml

This file was deleted.

69 changes: 56 additions & 13 deletions .github/workflows/go.yml → .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Go
name: Test

on:
push:
Expand All @@ -16,12 +16,10 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
lfs: 'true'
with: { lfs: 'true' }

- uses: actions/setup-go@v5
with:
go-version: stable
with: { go-version: stable }

- name: Format
run: gofmt -s -w . && git diff --exit-code
Expand All @@ -45,13 +43,16 @@ jobs:
- name: Test
run: go test -v ./...

- name: Test no locks
run: go test -v -tags sqlite3_nosys ./tests -run TestDB_nolock

- name: Test BSD locks
run: go test -v -tags sqlite3_flock ./...
if: matrix.os == 'macos-latest'

- name: Test no locks
run: go test -v -tags sqlite3_nosys ./tests -run TestDB_nolock

- name: Test GORM
run: gormlite/test.sh

- uses: ncruces/go-coverage-report@v0
with:
chart: true
Expand All @@ -66,12 +67,10 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
lfs: 'true'
with: { lfs: 'true' }

- uses: actions/setup-go@v5
with:
go-version: stable
with: { go-version: stable }

- name: Build
run: .github/workflows/bsd.sh
Expand All @@ -83,4 +82,48 @@ jobs:
version: '14.0'
shell: bash
run: source test.sh
sync_files: runner-to-vm
sync_files: runner-to-vm

test-m1:
runs-on: macos-14
needs: test

steps:
- uses: actions/checkout@v4
with: { lfs: 'true' }

- uses: actions/setup-go@v5
with: { go-version: stable }

- name: Test
run: go test -v ./...

test-386:
runs-on: ubuntu-latest
needs: test

steps:
- uses: actions/checkout@v4
with: { lfs: 'true' }

- uses: actions/setup-go@v5
with: { go-version: stable }

- name: Test
run: GOARCH=386 go test -v -short ./...

test-arm:
runs-on: ubuntu-latest
needs: test

steps:
- uses: actions/checkout@v4
with: { lfs: 'true' }

- uses: actions/setup-go@v5
with: { go-version: stable }

- uses: docker/setup-qemu-action@v3

- name: Test
run: GOARCH=arm64 go test -v -short ./...

0 comments on commit d1d5e35

Please sign in to comment.