Skip to content

Commit

Permalink
Feat: add build check
Browse files Browse the repository at this point in the history
  • Loading branch information
emost22 committed Jun 20, 2024
1 parent 737c374 commit 7142ce5
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: spurt build check

on:
pull_request:
branches:
- main

jobs:
push_to_registry:
name: Push to aws container registry
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'corretto'

- name: make application.yml
if: contains(github.ref, 'develop') || contains(github.ref, 'main')
run: |
mkdir ./src/main/resources
cd ./src/main/resources
touch ./application.yml
echo "${{ secrets.YML_PROD }}" > ./application.yml
shell: bash

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: build
cache-read-only: ${{ github.ref != 'refs/heads/master' }}

0 comments on commit 7142ce5

Please sign in to comment.