-
Notifications
You must be signed in to change notification settings - Fork 105
64 lines (54 loc) · 1.5 KB
/
test.yml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Tests
on: [push, pull_request]
jobs:
build:
name: Build for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
asset_name: mergestat-linux-amd64
- os: macos-latest
asset_name: mergestat-macos-amd64
steps:
- name: Set up Go 1.19
uses: actions/setup-go@v5
with:
go-version: 1.19.4
id: go
- name: Check out source
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install libgit2
run: make libgit2
- name: Vet
run: make vet
- name: Lint
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.50.0
make lint-ci
- name: Test
run: make test-cover
- name: Upload coverage
uses: codecov/codecov-action@v4
# TODO(patrickdevivo)
# lint:
# name: Lint
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Install libgit2
# run: |
# git clone https://github.com/libgit2/libgit2.git ~/libgit2
# cd ~/libgit2
# git checkout v1.1.0
# mkdir build && cd build
# sudo cmake .. -DBUILD_CLAR=0
# sudo cmake --build . --target install
# - name: golangci-lint
# uses: golangci/golangci-lint-action@v2
# with:
# version: v1.29
# args: --build-tags sqlite_vtable,static,system_libgit2