Skip to content

automated(deps): bump google.golang.org/protobuf from 1.32.0 to 1.34.1 #95

automated(deps): bump google.golang.org/protobuf from 1.32.0 to 1.34.1

automated(deps): bump google.golang.org/protobuf from 1.32.0 to 1.34.1 #95

Workflow file for this run

name: ci
on: [push, pull_request]
permissions: read-all
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
goos: [darwin, freebsd, linux, windows]
goarch: ["386", amd64, arm, arm64]
exclude:
- goos: windows
goarch: arm64
- goos: darwin
goarch: arm
- goos: darwin
goarch: "386"
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
steps:
- uses: actions/checkout@dc323e67f16fb5f7663d20ff7941f27f5809e9b6 # v2.6.0
- uses: actions/setup-go@bfdd3570ce990073878bf10f6b2d79082de49492 # v2.2.0
with:
go-version: "^1"
- run: go build -v .
- uses: actions/upload-artifact@82c141cc518b40d92cc801eee768e7aafc9c2fa2 # v2.3.1
with:
name: protoc-gen-lint_${{ matrix.goos }}_${{ matrix.goarch }}
path: protoc-gen-lint*
lint:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@dc323e67f16fb5f7663d20ff7941f27f5809e9b6 # v2.6.0
- uses: golangci/golangci-lint-action@5c56cd6c9dc07901af25baab6f2b0d9f3b7c3018 # v2.5.2
test:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@dc323e67f16fb5f7663d20ff7941f27f5809e9b6 # v2.6.0
- uses: actions/setup-go@bfdd3570ce990073878bf10f6b2d79082de49492 # v2.2.0
with:
go-version: "^1"
- run: go test -v ./...
release:
needs: [build, lint, test]
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@dc323e67f16fb5f7663d20ff7941f27f5809e9b6 # v2.6.0
- uses: actions/download-artifact@f023be2c48cc18debc3bacd34cb396e0295e2869 # v2.1.0
with:
path: artifacts
- name: zip artifacts
run: |
sh -c '
for dir in artifacts/**/; do
zip -j $(basename $dir).zip ${dir}/* README.md LICENSE;
done'
- uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: protoc-gen-lint_*.zip