generated from fission-codes/project-template
-
-
Notifications
You must be signed in to change notification settings - Fork 4
48 lines (45 loc) · 1 KB
/
main.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
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ '*' ]
jobs:
unit:
strategy:
fail-fast: false
matrix:
os: ["ubuntu"]
go: ["1.19.x"]
env:
COVERAGES: ""
runs-on: ${{ matrix.os }}-latest
name: ${{ matrix.os}} (go ${{ matrix.go }})
defaults:
run:
working-directory: kubo-car-mirror
steps:
- name: Checkout
uses: actions/checkout@v3
with:
path: kubo-car-mirror
- name: Checkout kubo repo
uses: actions/checkout@v3
with:
repository: ipfs/kubo
path: kubo
- uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Go information
run: |
go version
go env
- name: Build
run: make build build-plugin
- name: Run unit tests
run: make test-unit
- name: Check formatted
run: gofmt -l .
- name: Run sharness tests
run: make sharness-v