Skip to content

[dev] add CI/CD git actions, bash sciprts for deploy to EC2 #33

[dev] add CI/CD git actions, bash sciprts for deploy to EC2

[dev] add CI/CD git actions, bash sciprts for deploy to EC2 #33

Workflow file for this run

name: Build & Test
on:
push:
branches:
- "develop/**"
- "main"
pull_request:
branches:
- "develop/**"
jobs:
BuildTest:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Set up Corretto openJDK 17
uses: actions/setup-java@v3 # check specific version in https://github.com/actions/setup-java
with:
distribution: 'corretto' # using Amazon openJDK
java-version: '17'
- 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: Grant execute permission for gradlew
run: chmod +x ./gradlew
- name: Build project
run: ./gradlew build --daemon --build-cache --parallel --info -Pversion=0.0.1