Docs/readme docs #3
Workflow file for this run
This file contains hidden or 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: CI CodeFlix Dev | |
on: | |
pull_request: | |
branches: [ "develop" ] | |
jobs: | |
java: | |
name: CI develop job codeflix | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
cache: maven | |
- name: Build app | |
run: mvn clean package -DskipTests | |
- name: Run tests | |
env: | |
PROFILE_ACTIVE: 'test' | |
run: mvn clean install | |
- name: Credentials Github | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} |