Skip to content

[#80] build: 원상태로 복구 #54

[#80] build: 원상태로 복구

[#80] build: 원상태로 복구 #54

name: BuildAndTest
on:
push:
branches:
- main
- issue/**
pull_request:
branches:
- main
- issue/**
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Install Docker Compose
run: |
sudo apt-get update
sudo apt-get install -y docker-compose
- name: Set up Docker Compose
run: |
docker-compose up -d
docker-compose ps
- name: Wait for services to be ready
run: |
until docker-compose exec -T mysql mysqladmin ping -h"127.0.0.1" --silent; do
echo "Waiting for MySQL to be ready..."
sleep 5
done
sleep 10
- name: Grant execute permission for gradlew
run: chmod +x ./gradlew
- name: Build with Gradle
run: ./gradlew clean build -Duser.language=ko -Duser.country=KR
- name: Tear down Docker Compose
if: always()
run: docker-compose down
deploy:
needs: build
uses: ./.github/workflows/itcast-build-and-deploy.yml

Check failure on line 57 in .github/workflows/itcast-build-and-test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/itcast-build-and-test.yml

Invalid workflow file

error parsing called workflow ".github/workflows/itcast-build-and-test.yml" -> "./.github/workflows/itcast-build-and-deploy.yml" (source branch with sha:b46de1a2a6256c39ba61edeee915aa0401b9d6ca) : workflow is not reusable as it is missing a `on.workflow_call` trigger