From 1611e847192cf57b38bd0d5b8d4e2640ff4cb23d 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..2062115 --- /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@v4 + - name: Setup Go + uses: actions/setup-go@v5 + 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@v4 + - name: golangci-lint + uses: golangci/golangci-lint-action@v6 + with: + version: latest