Skip to content

Commit

Permalink
#93 actions
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jul 4, 2022
1 parent 95cea1f commit f5d2b6b
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/codecov.yml
@@ -0,0 +1,28 @@
---
name: codecov
"on":
push:
branches:
- master
jobs:
codecov:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 11
- uses: actions/cache@v1
with:
path: ~/.m2/repository
key: maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
maven-
- name: Run tests
run: mvn install -Pjacoco
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
file: ./target/site/jacoco/jacoco.xml
fail_ci_if_error: true
39 changes: 39 additions & 0 deletions .github/workflows/mvn.yml
@@ -0,0 +1,39 @@
---
name: mvn
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
name: test
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
java: [11, 17]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- uses: actions/cache@v1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-jdk-${{ matrix.java }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-jdk-${{ matrix.java }}-maven-
- uses: actions/setup-ruby@v1
with:
ruby-version: 2.7
- run: gem install xcop
- run: mvn clean install -Pqulice --errors --batch-mode

pdd-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: g4s8/pdd-action@master

0 comments on commit f5d2b6b

Please sign in to comment.