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