From 4f5f962fb8a7322b7b9d1e0a36ea48001d51a786 Mon Sep 17 00:00:00 2001 From: bulletmys Date: Sun, 10 Oct 2021 20:12:06 +0300 Subject: [PATCH] add github actions --- .github/workflows/go.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..c9f9231 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,28 @@ +name: Go + +on: + push: + branches: [ master, upd_ci ] + pull_request: + branches: [ master ] + +jobs: + + build: + runs-on: ubuntu-latest + strategy: + matrix: + go: [ '1.17', '1.16', '1.15' ] + steps: + - uses: actions/checkout@v2 + + - name: Set up Go ${{ matrix.go }} + uses: actions/setup-go@v2 + with: + go-version: ${{ matrix.go }} + + - name: Install golint + run: go get golang.org/x/lint/golint + + - name: Build and Run tests + run: make