Skip to content

Commit

Permalink
feat: build type debug/release 분리
Browse files Browse the repository at this point in the history
  • Loading branch information
HyomK committed Jul 26, 2024
1 parent 9ab3c8b commit 17709da
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/actions/setup-development-environment/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ inputs:
required: true
test-mode:
description: 'Test debug or release mode'
required: true
required: false
debug-properties:
description: 'Secret Debug Properties'
required: true
required: false
release-properties:
description: 'Secret Release Properties'
required: false
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/verify_debug_build_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: "[CI] verify build test"

on:
pull_request:
types: [ opened, synchronize ]
push:
branches:
- main
- develop

jobs:
build_test:
environment: Debug
runs-on: ubuntu-latest
strategy:
matrix:
gradle_command:
- :app:assembleRelease
- :app:assembleDebug
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Development Environment
uses: ./.github/actions/setup-development-environment
with:
google-services: ${{ secrets.GOOGLE_SERVICES }}
test-mode: debug
debug-properties: ${{ secrets.DEBUG_PROPERTIES }}

- name: build test
run: ./gradlew ${{ matrix.gradle_command }}
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,17 @@ on:
types: [ opened, synchronize ]
push:
branches:
- develop
- main
- develop

jobs:
build_test:
environment: Test
environment: Release
runs-on: ubuntu-latest
strategy:
matrix:
gradle_command:
- :app:assembleRelease
- :app:assembleDebug
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -25,7 +24,7 @@ jobs:
uses: ./.github/actions/setup-development-environment
with:
google-services: ${{ secrets.GOOGLE_SERVICES }}
test-mode: ${{ github.base_ref == 'develop' && 'debug' || 'release' }}
test-mode: release
debug-properties: ${{ secrets.DEBUG_PROPERTIES }}
release-properties: ${{ secrets.RELEASE_PROPERTIES }}

Expand Down

0 comments on commit 17709da

Please sign in to comment.