-
Notifications
You must be signed in to change notification settings - Fork 3
44 lines (41 loc) · 1015 Bytes
/
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
on:
workflow_dispatch:
# push:
# branches:
# - main
# pull_request:
permissions:
contents: read
name: Test
jobs:
matrix-test:
name: test
strategy:
matrix:
go-version: ['1.21.x']
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: extractions/setup-just@v1
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Build fabric
run: go build -v -o ${{ runner.temp }}/fabric
- name: Build fabric-plugins
run: go build -v -o ${{ runner.temp }}/plugins ./cmd/plugins
- name: Test
run: go test -race -v -timeout 10s ./...
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '1.21.x'
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.55.2