Skip to content

Commit

Permalink
Configurando GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Paulo-nevess committed May 13, 2024
1 parent 03598c0 commit 6dd8080
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/actions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Github CI
on:
# Configura servidor de CI para executar o pipeline de tarefas abaixo (jobs) quando
# um push ou pull request for realizado tendo como alvo a branch main
push:
branches:
- main
pull_request:
branches:
- main

jobs:
pipeline:
runs-on: ubuntu-latest # Os comandos serão executados em um sistema operacional Linux

steps:
- name: Git Checkout
uses: actions/checkout@v2 # Faz o checkout do código recebido

- name: Set up JDK 1.8
uses: actions/setup-java@v1 # Configura o Java 1.8
with:
java-version: 1.8

- name: Build
run: mvn package -Dmaven.test.skip=true # Compila o código fonte

- name: Unit Test
run: mvn test # Executada os testes de unidade

0 comments on commit 6dd8080

Please sign in to comment.