Merge pull request #35 from Cry199/patch-6 #15
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: Java CI/CD with Maven, JSP and JUnit # Nome do Workflow | |
on: # Definindo os eventos de disparo | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: # Chamando a tarefa de 'build' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: maven | |
- name: Install Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
- name: Build with Maven | |
run: mvn -B clean install --file pom.xml | |
- name: Run JUnit Tests | |
run: mvn -B test --file pom.xml |