Skip to content

Commit

Permalink
Update CI Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
swapnil-musale committed Feb 8, 2024
1 parent 48856c7 commit 5758e73
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,36 @@
name: CI Build
name: Pull Request Verification

on:
push:
branches: [ "master", "ci_workflow" ]
pull_request:
branches: [ "master" ]
types: [ opened, ready_for_review, synchronize ]
paths-ignore:
- '**.md'

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

jobs:
build:
name: Build
runs-on: macos-latest

steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v4

- name: Setup JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'corretto'

- name: Cache gradle
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Setup JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
${{ runner.os }}-gradle-
- name: Grant permission for gradlew
run: chmod +x gradlew
Expand Down

0 comments on commit 5758e73

Please sign in to comment.