aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpg9182 <96569817+pg9182@users.noreply.github.com>2022-10-21 13:57:52 -0400
committerpg9182 <96569817+pg9182@users.noreply.github.com>2022-10-21 13:57:52 -0400
commit6ca61cfee7bca488307d52a2f03967cf9f12d0d3 (patch)
tree157f0ae4e817d4577c22ef4859784cc357c27bf4
parent5114f1d3f2db648b1f7a3d5f81efc42726cc50d3 (diff)
downloadAtlas-6ca61cfee7bca488307d52a2f03967cf9f12d0d3.tar.gz
Atlas-6ca61cfee7bca488307d52a2f03967cf9f12d0d3.zip
all: Add GitHub Actions workflow
-rw-r--r--.github/workflows/ci.yml36
1 files changed, 36 insertions, 0 deletions
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 }}