Skip to content

NO-ISSUE Set minimumReleaseAge to 7 days to avoid merge renovate PR q… #811

NO-ISSUE Set minimumReleaseAge to 7 days to avoid merge renovate PR q…

NO-ISSUE Set minimumReleaseAge to 7 days to avoid merge renovate PR q… #811

Workflow file for this run

name: Go Test
on:
push:
pull_request:
merge_group:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
matrix:
go:
- stable
- oldstable
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
submodules: true
- name: Set up Python
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
with:
python-version: '3.x'
- name: Set up Go
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
with:
go-version: ${{ matrix.go }}
- name: Install goimports
run: go install golang.org/x/tools/cmd/goimports@latest
- name: Generate code
run: python generate-code.py
- name: run codecov.sh
run: bash script/codecov.sh
- name: go vet
run: go vet $(go list ./... | grep -v /examples/)
- name: Compile example scripts
run: |
for file in $(find ./examples/ -name '*.go'); do
dir=$(dirname $file)
pushd $dir
go build -o /dev/null
popd
done
- name: Publish to codecov.io
run: bash <(curl -s https://codecov.io/bash)
pinact:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Run pinact
uses: suzuki-shunsuke/pinact-action@49cbd6acd0dbab6a6be2585d1dbdaa43b4410133 # v1.0.0
with:
skip_push: "true"