Skip to content

Merge pull request #42 from douyu/dependabot/go_modules/google.golang… #84

Merge pull request #42 from douyu/dependabot/go_modules/google.golang…

Merge pull request #42 from douyu/dependabot/go_modules/google.golang… #84

Workflow file for this run

name: go
on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
go: ["1.19.x"]
steps:
- uses: actions/[email protected]
- uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
id: go
- name: do unit test
run: |
make init
make lint
make generate
make test
make validate
- name: Commit & Push changes
uses: actions-js/push@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}