Skip to content

Commit

Permalink
[#38] feat: Fix workflow for build directory
Browse files Browse the repository at this point in the history
  • Loading branch information
FacerAin committed Feb 16, 2024
1 parent 05eaf8a commit f1f832f
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on: [ pull_request, workflow_dispatch ]


jobs:
build:
name: Build
style:
name: CheckStyle
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -56,17 +56,37 @@ jobs:
exit 1
fi
docker:
needs: build
build:
runs-on: ubuntu-latest
steps:
# repository checkout
- uses: actions/checkout@v2

- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Run Checkstyle
run: ./gradlew checkstyleMain checkstyleTest
- name: Make firebase-adminsdk.json
run: |
touch src/main/resources/timeet-firebase-adminsdk.json
echo "${{ secrets.FIREBASE_ADMINSDK }}" | base64 --decode > src/main/resources/timeet-firebase-adminsdk.json
- name: Make application-prod.yml
run: |
touch src/main/resources/application-prod.yml
echo "${{ secrets.APPLICATION_PROD }}" | base64 --decode > src/main/resources/application-prod.yml
- name: Make application-test.yml
run: |
touch src/main/resources/application-test.yml
echo "${{ secrets.APPLICATION_TEST }}" | base64 --decode > src/main/resources/application-test.yml
- name: Set output
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}

- name: Build and analyze
run: ./gradlew clean build --info

- name: Docker Setup QEMU
uses: docker/[email protected]

Expand Down

0 comments on commit f1f832f

Please sign in to comment.