Skip to content

Workflow file for this run

name: Build production profile about dailyon
on:
workflow_dispatch:
pull_request:
branches:
- 'main'
paths-ignore:
- '**/**-dev.yml'
- '**/**-dev.sh'
- '**/**-dev'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Gradle Caching
uses: actions/cache@v3
with:
path: |
./.gradle/caches
./.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'corretto'
cache: gradle
- name: Grant execute permission to gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
shell: bash
test:
needs: build
environment: test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'corretto'
cache: gradle
- name: Grant execute permission to gradlew
run: chmod +x gradlew
- name: Test with Gradle
run: ./gradlew test
shell: bash