diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md deleted file mode 100644 index 8464cb6..0000000 --- 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 6cc83b3..0000000 --- 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/workflows/codecov.yml b/.github/workflows/codecov.yml new file mode 100644 index 0000000..b9f537a --- /dev/null +++ b/.github/workflows/codecov.yml @@ -0,0 +1,26 @@ +--- +name: codecov +"on": + push: + branches: + - master +jobs: + codecov: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: 11 + - uses: actions/cache@v3 + with: + path: ~/.m2/repository + key: maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + maven- + - run: mvn install -Pjacoco + - uses: codecov/codecov-action@v3 + with: + file: ./target/site/jacoco/jacoco.xml + fail_ci_if_error: true diff --git a/.github/workflows/mvn.yml b/.github/workflows/mvn.yml new file mode 100644 index 0000000..5efd44d --- /dev/null +++ b/.github/workflows/mvn.yml @@ -0,0 +1,31 @@ +--- +name: mvn +on: + push: + branches: + - master + pull_request: + branches: + - master +jobs: + maven-build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-20.04, windows-2022, macos-12] + java: [11, 17] + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: ${{ matrix.java }} + - uses: actions/cache@v3 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-jdk-${{ matrix.java }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-jdk-${{ matrix.java }}-maven- + - 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 0000000..714428d --- /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@v3 + - uses: g4s8/pdd-action@master diff --git a/.github/workflows/xcop.yml b/.github/workflows/xcop.yml new file mode 100644 index 0000000..cdc3c73 --- /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@v3 + - uses: g4s8/xcop-action@master diff --git a/.rultor.yml b/.rultor.yml index 534c283..4433d7b 100644 --- a/.rultor.yml +++ b/.rultor.yml @@ -1,41 +1,21 @@ architect: -- yegor256 -- dmarkov -install: -- sudo gem install pdd -v 0.20.5 + - yegor256 +docker: + image: yegor256/rultor-image:1.13.0 assets: - secring.gpg: yegor256/home#assets/secring.gpg settings.xml: yegor256/home#assets/jcabi/settings.xml + secring.gpg: yegor256/home#assets/secring.gpg pubring.gpg: yegor256/home#assets/pubring.gpg - s3cfg: yegor256/home#assets/s3cfg +install: | + pdd --file=/dev/null merge: - script: - - mvn clean install -Pqulice --errors --settings ../settings.xml - - mvn clean - - pdd --source=$(pwd) --verbose --file=/dev/null - commanders: - - carlosmiranda - - darkled - - dmzaytsev - - ggajos - - hdouss - - krzyk - - longtimeago - - mkordas - - pinaf -deploy: - script: - - mvn clean deploy -Pqulice --errors --settings ../settings.xml - - mvn clean - - pdd --source=$(pwd) --verbose --file=jcabi-heroku-maven-plugin.xml - - s3cmd --no-progress put jcabi-heroku-maven-plugin.xml --config=../s3cfg s3://pdd.teamed.io/jcabi-heroku-maven-plugin.xml -env: - MAVEN_OPTS: -XX:MaxPermSize=256m -Xmx1g + script: | + mvn clean install -Pqulice --errors --batch-mode release: - script: - - mvn versions:set "-DnewVersion=${tag}" - - git commit -am "${tag}" - - mvn clean deploy -Pqulice -Psonatype -Pjcabi --errors --settings ../settings.xml - - mvn clean site-deploy -Psite --errors --settings ../settings.xml - commanders: - - yegor256 \ No newline at end of file + pre: false + script: |- + [[ "${tag}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || exit -1 + mvn versions:set "-DnewVersion=${tag}" --batch-mode + git commit -am "${tag}" + mvn clean deploy -Pqulice -Psonatype -Pjcabi --batch-mode --errors --settings ../settings.xml + mvn clean site-deploy -Psite --errors --settings ../settings.xml --batch-mode diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 11d49c6..0000000 --- a/.travis.yml +++ /dev/null @@ -1,23 +0,0 @@ -language: java -sudo: false -cache: - directories: - - $HOME/.m2 -script: - - set -e - - mvn clean install -Pqulice --errors --batch-mode - - mvn clean - - pdd --source=$(pwd) --file=/dev/null - - est --dir=est --file=/dev/null -before_install: - - rvm install 2.6.0 - - rvm use 2.6.0 -install: - - gem install pdd -v 0.20.5 - - gem install est -v 0.3.4 -env: - global: - - MAVEN_OPTS="-Xmx256m" - - JAVA_OPTS="-Xmx256m" -jdk: -