From 6ca61cfee7bca488307d52a2f03967cf9f12d0d3 Mon Sep 17 00:00:00 2001 From: pg9182 <96569817+pg9182@users.noreply.github.com> Date: Fri, 21 Oct 2022 13:57:52 -0400 Subject: all: Add GitHub Actions workflow --- .github/workflows/ci.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/ci.yml (limited to '.github') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..baa4e2e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,36 @@ +name: ci + +on: + - push + - pull_request + +jobs: + go: + name: Go ${{matrix.go}} - ${{matrix.os}} + runs-on: ${{matrix.os}} + + strategy: + matrix: + os: ["windows-latest", "ubuntu-latest", "macOS-latest"] + go: ["1.19.x"] + fail-fast: false + + steps: + - uses: actions/checkout@v1 + + - uses: actions/setup-go@v3 + with: + go-version: ${{matrix.go}} + + - name: Go test + run: go test -v ./... + + - name: Go vet + run: go vet ./... + + - name: Go staticcheck + uses: dominikh/staticcheck-action@v1.2.0 + with: + version: "2022.1.1" + install-go: false + cache-key: ${{ matrix.go }} -- cgit v1.2.3