Skip to content

Commit e79b6ad

Browse files
changed build.yml
1 parent 21f15e3 commit e79b6ad

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
name: my-actions
22

33
on:
4-
push:
5-
branches:
6-
- main
7-
pull_request:
8-
types: [ opened, synchronize, reopened ]
4+
- push
5+
- pull_request
96

107
jobs:
118
build:
129
name: Build and analyze
1310
runs-on: ubuntu-latest
11+
1412
steps:
1513
- uses: actions/checkout@v4
1614
with:
@@ -20,16 +18,19 @@ jobs:
2018
with:
2119
java-version: 21
2220
distribution: 'temurin' # Alternative distribution options are available
21+
2322
- uses: gradle/gradle-build-action@v2
2423
with:
2524
gradle-version: 8.7
2625
arguments: build
26+
2727
- name: Cache SonarQube packages
2828
uses: actions/cache@v4
2929
with:
3030
path: ~/.sonar/cache
3131
key: ${{ runner.os }}-sonar
3232
restore-keys: ${{ runner.os }}-sonar
33+
3334
- name: Cache Gradle packages
3435
uses: actions/cache@v4
3536
with:

0 commit comments

Comments
 (0)