From a3a3c906ea72edafdb6fd8ac2965eae4fb848698 Mon Sep 17 00:00:00 2001 From: Yegor Bugayenko Date: Fri, 5 Aug 2022 06:41:51 +0300 Subject: [PATCH] actions --- .github/ISSUE_TEMPLATE.md | 12 ------------ .github/PULL_REQUEST_TEMPLATE.md | 11 ----------- .github/dependabot.yml | 6 ------ .github/workflows/codecov.yml | 11 ++++------- .github/workflows/mvn.yml | 19 ++++++++----------- .github/workflows/pdd.yml | 15 +++++++++++++++ .github/workflows/xcop.yml | 15 +++++++++++++++ 7 files changed, 42 insertions(+), 47 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE.md delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/pdd.yml create mode 100644 .github/workflows/xcop.yml diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md deleted file mode 100644 index 8464cb69..00000000 --- a/.github/ISSUE_TEMPLATE.md +++ /dev/null @@ -1,12 +0,0 @@ -Make sure the title of the issue explains the problem you are having. Also, the description of the issue must clearly explain what is broken, not what you want us to implement. Go through this checklist and make sure you answer "YES" to all points: - - - You have all pre-requisites listed in README.md installed - - You are sure that you are not reporting a duplicate (search all issues) - - You say "is broken" or "doesn't work" in the title - - You tell us what you are trying to do - - You explain the results you are getting - - You suggest an alternative result you would like to see - -This article will help you understand what we are looking for: http://www.yegor256.com/2014/11/24/principles-of-bug-tracking.html - -Thank you for your contribution! diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 6cc83b32..00000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,11 +0,0 @@ -Many thanks for your contribution, we truly appreciate it. We will appreciate it even more, if you make sure that you can say "YES" to each point in this short checklist: - - - You made a small amount of changes (less than 100 lines, less than 10 files) - - You made changes related to only one bug (create separate PRs for separate problems) - - You are ready to defend your changes (there will be a code review) - - You don't touch what you don't understand - - You ran the build locally and it passed - -This article will help you understand what we are looking for: http://www.yegor256.com/2015/02/09/serious-code-reviewer.html - -Thank you for your contribution! diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 0e83b1f4..00000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,6 +0,0 @@ -version: 2 -updates: - - package-ecosystem: "maven" - directory: "/" - schedule: - interval: "daily" diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 8c7fc862..336e44d2 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -6,11 +6,10 @@ name: codecov - master jobs: codecov: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 - - name: Set up JDK - uses: actions/setup-java@v1 + - uses: actions/setup-java@v1 with: java-version: 11 - uses: actions/cache@v1 @@ -19,10 +18,8 @@ jobs: key: maven-${{ hashFiles('**/pom.xml') }} restore-keys: | maven- - - name: Run tests - run: mvn install -Pjacoco -DskipITs -Dinvoker.skip - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v1 + - run: mvn install -Pjacoco + - uses: codecov/codecov-action@v1 with: file: ./target/site/jacoco/jacoco.xml fail_ci_if_error: true diff --git a/.github/workflows/mvn.yml b/.github/workflows/mvn.yml index ff4cb95a..1f3367bd 100644 --- a/.github/workflows/mvn.yml +++ b/.github/workflows/mvn.yml @@ -1,6 +1,6 @@ --- name: mvn -on: +"on": push: branches: - master @@ -8,13 +8,12 @@ on: branches: - master jobs: - test: - name: test + maven-build: + runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - java: [11, 17] - runs-on: ${{ matrix.os }} + os: [ubuntu-20.04, windows-2022, macos-12] + java: [11, 13] steps: - uses: actions/checkout@v2 - uses: actions/setup-java@v1 @@ -26,8 +25,6 @@ jobs: 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 + - run: java -version + - run: mvn -version + - run: mvn --errors --batch-mode clean install -Pqulice diff --git a/.github/workflows/pdd.yml b/.github/workflows/pdd.yml new file mode 100644 index 00000000..7bb19b96 --- /dev/null +++ b/.github/workflows/pdd.yml @@ -0,0 +1,15 @@ +--- +name: pdd +"on": + push: + branches: + - master + pull_request: + branches: + - master +jobs: + pdd: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - uses: g4s8/pdd-action@master diff --git a/.github/workflows/xcop.yml b/.github/workflows/xcop.yml new file mode 100644 index 00000000..1cad90bb --- /dev/null +++ b/.github/workflows/xcop.yml @@ -0,0 +1,15 @@ +--- +name: xcop +"on": + push: + branches: + - master + pull_request: + branches: + - master +jobs: + xcop: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - uses: g4s8/xcop-action@master