PreCommit Go #1693
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: beam_PreCommit_Go | |
on: | |
push: | |
tags: ['v*'] | |
branches: ['master', 'release-*'] | |
pull_request: | |
branches: ['master'] | |
paths: ['model/**', 'sdks/go.**', 'release/**'] | |
issue_comment: | |
types: [created] | |
schedule: | |
- cron: '* */6 * * *' | |
jobs: | |
beam_PreCommit_Go: | |
if: ${{github.event.issue.pull_request}} || ${{github.event.comment.body == 'Run Go PreCommit'}} || ${{github.event.schedule}} | |
runs-on: [self-hosted, ubuntu-20.04] | |
name: beam_PreCommit_Go | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v3 | |
- name: Install Java | |
uses: actions/[email protected] | |
with: | |
distribution: 'zulu' | |
java-version: '8' | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.20' | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
with: | |
cache-read-only: false | |
- name: run goPreCommit script | |
run: ./gradlew :goPreCommit |