Skip to content

Test

Test #3

Workflow file for this run

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
- name: Build fabric-plugins
run: go build -v ./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