1
0
mirror of https://github.com/ACINQ/eclair.git synced 2024-11-19 18:10:42 +01:00
eclair/.github/workflows/main.yml
Pierre-Marie Padiou aca7499df2
Use github action for scoverage (#1490)
And disable codecov in semaphore.
2020-07-21 13:05:51 +02:00

39 lines
811 B
YAML

name: Build & Test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
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: Cache Maven dependencies
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Configure OS settings
run: echo "fs.file-max = 1024000" | sudo tee -a /etc/sysctl.conf
- name: Build with Maven
run: mvn compile && mvn scoverage:report
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
directory: eclair-core