From 25d479cdace8d607d9a3d28a93cbbb880d921c89 Mon Sep 17 00:00:00 2001 From: Suyash Kumar Date: Thu, 10 Mar 2022 15:20:03 -0800 Subject: [PATCH 1/2] Add initial GitHub Actions config --- .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..b7c364d --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,28 @@ +name: test +on: [push, pull_request] +jobs: + + build: + name: Build and Test + runs-on: ubuntu-latest + steps: + + - name: Set up Go 1.17 + uses: actions/setup-go@v2 + with: + go-version: 1.17 + id: go + + - name: Check out code + uses: actions/checkout@v1 + + - name: Get dependencies + run: | + go mod download + - name: Build + run: | + go build ./... + + - name: Test + run: | + go test ./... From b6bad9db261eca05ebd75720aeed1b5c196a3941 Mon Sep 17 00:00:00 2001 From: Suyash Kumar Date: Thu, 10 Mar 2022 16:40:52 -0800 Subject: [PATCH 2/2] remove trailing spaces --- .github/workflows/go.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index b7c364d..1ca0b5c 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -1,4 +1,4 @@ -name: test +name: test on: [push, pull_request] jobs: @@ -13,7 +13,7 @@ jobs: go-version: 1.17 id: go - - name: Check out code + - name: Check out code uses: actions/checkout@v1 - name: Get dependencies