Skip to content

Added github actions #1

Added github actions

Added github actions #1

Workflow file for this run

on:
push:
branches:
- main
pull_request:
permissions:
contents: read
name: Test
jobs:
matrix-test:
name: test
strategy:
matrix:
go-version: ['1.20.x', '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 -v ./...
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