mautrix-go/.github/workflows/go.yml
Tulir Asokan badc3775a7 Add sudo
2021-09-22 10:59:31 -04:00

32 lines
652 B
YAML

name: Go
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go-version: [1.14, 1.15, 1.16, 1.17]
steps:
- uses: actions/checkout@v2
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Install libolm
run: sudo apt-get install libolm-dev libolm3
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...
- name: Format
run: if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1; fi
if: matrix.go-version == 1.17