From 14ebd728721c6d1f9684cdcd8c62fe5677f7b14b Mon Sep 17 00:00:00 2001 From: Stanislas Lange Date: Tue, 12 Nov 2024 11:33:29 +0100 Subject: [PATCH] Add CI --- .github/workflows/push.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/push.yml diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml new file mode 100644 index 0000000..947dba1 --- /dev/null +++ b/.github/workflows/push.yml @@ -0,0 +1,35 @@ +name: Push workflow + +on: push + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + os: + - linux + - darwin + arch: + - amd64 + - arm64 + steps: + - uses: actions/checkout@v2 + - name: Setup Go + uses: actions/setup-go@v2 + with: + go-version: "1.23" + - name: Run build + run: go build + env: + GOOS: ${{ matrix.os }} + GOARCH: ${{ matrix.arch }} + + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: golangci-lint + uses: golangci/golangci-lint-action@v2 + with: + version: latest