forked from apache/beam
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 1.06 KB
/
beam_PreCommit_Go.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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