Actualiser .github/workflows/maven.yml
This commit is contained in:
parent
552fb853bc
commit
e3d06bae75
1 changed files with 16 additions and 20 deletions
34
.github/workflows/maven.yml
vendored
34
.github/workflows/maven.yml
vendored
|
@ -1,23 +1,19 @@
|
|||
name: Java CI
|
||||
image: maven:3.8.3-openjdk-11
|
||||
|
||||
on: [push, pull_request]
|
||||
stages:
|
||||
- build
|
||||
- test
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
stage: build
|
||||
script:
|
||||
- mvn compile
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Set up JDK 11
|
||||
uses: actions/setup-java@v2
|
||||
with:
|
||||
java-version: '11'
|
||||
distribution: 'adopt'
|
||||
|
||||
- name: Build and test
|
||||
env:
|
||||
DB_URL: jdbc:mysql://srv-bdens.insa-toulouse.fr:3306/projet_gei_023
|
||||
DB_USER: projet_gei_023
|
||||
DB_PASSWORD: ohQu4ood
|
||||
run: mvn clean verify
|
||||
test:
|
||||
stage: test
|
||||
script:
|
||||
- mvn test
|
||||
variables:
|
||||
DB_URL: "jdbc:mysql://srv-bdens.insa-toulouse.fr:3306/projet_gei_023"
|
||||
DB_USER: "projet_gei_023"
|
||||
DB_PASSWORD: "ohQu4ood"
|
Loading…
Reference in a new issue