Workflow to only build on PR and building an image only on push to test #16

Merged
hitanshu merged 2 commits from hitanshu/CFTunnels:ingress into test 2025-05-28 14:11:03 +00:00
2 changed files with 20 additions and 3 deletions

View File

@ -0,0 +1,20 @@
name: sample gradle build and test
run-name: Build started by $ {{gitea.actor}}
on:
pull_request:
branches: [test]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: JDK setup
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- name: Validate Gradle Wrapper
uses: gradle/actions/wrapper-validation@v3
- name: Gradle build
run: ./gradlew build --debug

View File

@ -3,9 +3,6 @@ run-name: Build started by $ {{gitea.actor}}
on:
push:
branches: [test]
pull_request:
branches: [test]
jobs:
build:
runs-on: ubuntu-latest
container: