From c8a8dc0f4d0648eb307d7155c480e8b3b390352b Mon Sep 17 00:00:00 2001 From: 0x9ef <0x9ef@tutanota.com> Date: Thu, 30 Mar 2023 19:48:11 +0300 Subject: [PATCH] Create .github/workflows/go.yml --- .github/workflows/go.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 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..e907b2b --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,22 @@ +name: Push/PR Check + +on: + - push + - pull_request + +jobs: + buildcheck: + name: Build check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Setup Go + uses: actions/setup-go@v2 + with: + go-version: '1.17' + - name: Run vet + run: | + go vet . + - name: Run tests + run: | + go test -race -v .