From 78a0e37a24d05866553b2038e3c780301c390deb Mon Sep 17 00:00:00 2001 From: Mark Sagi-Kazar Date: Fri, 6 Dec 2019 12:22:07 +0100 Subject: [PATCH] Add github actions workflow --- .github/workflows/.editorconfig | 2 ++ .github/workflows/ci.yml | 35 +++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 .github/workflows/.editorconfig create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/.editorconfig b/.github/workflows/.editorconfig new file mode 100644 index 0000000..7bd3346 --- /dev/null +++ b/.github/workflows/.editorconfig @@ -0,0 +1,2 @@ +[*.yml] +indent_size = 2 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..576e740 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,35 @@ +name: CI + +on: + push: + branches: + - master + pull_request: + +jobs: + build: + name: Build + runs-on: ubuntu-latest + strategy: + max-parallel: 10 + matrix: + go: ['1.11', '1.12', '1.13'] + env: + VERBOSE: 1 + GOFLAGS: -mod=readonly + GOPROXY: https://proxy.golang.org + + steps: + - name: Set up Go + uses: actions/setup-go@v1 + with: + go-version: ${{ matrix.go }} + + - name: Checkout code + uses: actions/checkout@v1 + + - name: Run tests + run: make test + + - name: Run linter + run: make lint