Agregando permisos de ejecución de ./gradlew #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous Integration with GitHub | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test_build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout código fuente | |
uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Give execute permission to gradlew | |
run: chmod +x ./gradlew # Agrega permisos de ejecución | |
working-directory: . # Reemplaza 'your-project-directory' por la ubicación real de gradlew en tu proyecto | |
- name: clean project | |
run: ./gradlew clean build | |
- name: run all test | |
run: ./gradlew testClasses | |
- name: create .jar and install | |
run: ./gradlew bootJar |