From e6d034cf1f34a08e4d9913f129389c2b0d22c37f Mon Sep 17 00:00:00 2001 From: Yegor Bugayenko Date: Wed, 10 Aug 2022 07:21:51 +0300 Subject: [PATCH] #1139 actions --- .github/ISSUE_TEMPLATE.md | 12 ------------ .github/PULL_REQUEST_TEMPLATE.md | 15 --------------- .github/workflows/codecov.yml | 4 ++-- .github/workflows/mvn.yml | 25 +++++++------------------ .github/workflows/pdd.yml | 11 +++++++++++ .github/workflows/xcop.yml | 11 +++++++++++ 6 files changed, 31 insertions(+), 47 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE.md delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md 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 8464cb69c..000000000 --- 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 0eac49ce0..000000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,15 +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, or leave puzzles) - - 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 - - Title begins with the issue's number, then a short title - - Description begins with the issue's number, then enumerates the changes - summarized - in bulletpoints - - Description does not contain GitHub keywords (https://help.github.com/articles/closing-issues-using-keywords/). - - You ran the build locally and it passed (see .travis.yml for all checks performed on PRs) - -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/workflows/codecov.yml b/.github/workflows/codecov.yml index 4d569aef2..fcc7072c3 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -6,7 +6,7 @@ on: - master jobs: codecov: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 - uses: actions/setup-java@v1 @@ -18,7 +18,7 @@ jobs: key: maven-${{ hashFiles('**/pom.xml') }} restore-keys: | maven- - - run: mvn install -Pjacoco -Dinvoker.skip + - run: mvn install -Pjacoco - uses: codecov/codecov-action@v1 with: file: ./target/site/jacoco/jacoco.xml diff --git a/.github/workflows/mvn.yml b/.github/workflows/mvn.yml index aadfc23ad..bbea603e4 100644 --- a/.github/workflows/mvn.yml +++ b/.github/workflows/mvn.yml @@ -5,16 +5,13 @@ on: branches: - master pull_request: - branches: - - master jobs: - test: - name: test + maven-build: + runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - java: [8, 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,14 +23,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 - - pdd-lint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: g4s8/pdd-action@master + - 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 000000000..205a1039e --- /dev/null +++ b/.github/workflows/pdd.yml @@ -0,0 +1,11 @@ +--- +name: pdd +on: + push: + pull_request: +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 000000000..3ac143e31 --- /dev/null +++ b/.github/workflows/xcop.yml @@ -0,0 +1,11 @@ +--- +name: xcop +on: + push: + pull_request: +jobs: + xcop: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - uses: g4s8/xcop-action@master