Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug #149

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Bug #149

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
4 changes: 2 additions & 2 deletions src/main/java/br/ufmg/dcc/Calculadora.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
public class Calculadora {

public int soma(int x, int y) {
return x + y;
return x + y + 1;
}

public int subtrai(int x, int y) {
return x - y;
}

}
}