-
Notifications
You must be signed in to change notification settings - Fork 250
41 lines (38 loc) · 1.12 KB
/
basictests.yml
File metadata and controls
41 lines (38 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Go-CI
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
go-version: [1.24.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v4
- name: Check formatting
run: |
# Check formatting of all Go files in the project
if [ "$(gofmt -s -l $(find . -name "*.go" -type f) | wc -l)" -gt 0 ]; then
echo "The following files are not formatted with go fmt:"
gofmt -s -l $(find . -name "*.go" -type f)
exit 1
fi
- name: Unconvert lint
run: |
if [ "$(go tool unconvert ./... | wc -l)" -gt 0 ]; then
echo "Unnecessary type conversions found. Please run 'make unconvert' and commit changes."
go tool unconvert ./...
exit 1
fi
- name: Test
run: |
go build -tags appengine
go test -tags appengine
go test -v
go test -v ./roaring64
go test -v ./BitSliceIndexing