Skip to content

Add support for D-Bus-based yggdrasil IPC #107

Add support for D-Bus-based yggdrasil IPC

Add support for D-Bus-based yggdrasil IPC #107

Workflow file for this run

name: Go
on:
push:
pull_request:
jobs:
build:
name: "Build"
runs-on: ubuntu-latest
strategy:
matrix:
go:
- '1.19'
- '1.20'
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Setup go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: Go build (source)
run: make
- name: Go build (tests)
run: make test
- name: Go lint
run: |
if [ $(gofmt -l src/* | wc -l) -gt 0 ]; then
gofmt -d src/*
exit 1
fi
- name: Go vet
run: make vet
lint-code:
name: Lint code
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
with:
submodules: true
- name: Setup go
uses: actions/setup-go@v4
with:
go-version: '1.19'
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3