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:
|
build:
|
||||||
runs-on: ubuntu-latest
|
stage: build
|
||||||
|
script:
|
||||||
|
- mvn compile
|
||||||
|
|
||||||
steps:
|
test:
|
||||||
- uses: actions/checkout@v2
|
stage: test
|
||||||
|
script:
|
||||||
- name: Set up JDK 11
|
- mvn test
|
||||||
uses: actions/setup-java@v2
|
variables:
|
||||||
with:
|
DB_URL: "jdbc:mysql://srv-bdens.insa-toulouse.fr:3306/projet_gei_023"
|
||||||
java-version: '11'
|
DB_USER: "projet_gei_023"
|
||||||
distribution: 'adopt'
|
DB_PASSWORD: "ohQu4ood"
|
||||||
|
|
||||||
- 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
|
|
Loading…
Reference in a new issue