forked from aserg-ufmg/demo-ci
-
Notifications
You must be signed in to change notification settings - Fork 35
29 lines (24 loc) · 782 Bytes
/
Copy pathactions.yaml
File metadata and controls
29 lines (24 loc) · 782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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