-
Notifications
You must be signed in to change notification settings - Fork 6
26 lines (23 loc) · 953 Bytes
/
ci.yml
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
name: Java-CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Install Chrome
run: sudo apt install google-chrome-stable
- name: Install Chromedriver
run: |
mkdir github-bin
wget https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.96/linux64/chromedriver-linux64.zip -O $PWD/github-bin/chromedriver_linux64.zip
unzip $PWD/github-bin/chromedriver_linux64.zip -d $PWD/github-bin
export PATH=$PWD/github-bin:$PATH
- name: Test and generate coverage with Maven
run: mvn clean verify surefire-report:report-only -Daggregate=true
- name: Publish coverage
run: bash <(curl -s https://codecov.io/bash) -f plugin-parent/coverage/target/site/jacoco-aggregate/jacoco.xml