fix queue size in chat #53
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: On push to master | |
on: | |
pull_request: | |
branches: | |
- master | |
types: | |
- closed | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
jobs: | |
build: | |
if: github.event.pull_request.merged | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setting up the token | |
if: env.GH_TOKEN == '' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: echo "GH_TOKEN=${GITHUB_TOKEN}" >> $GITHUB_ENV | |
- name: checkout | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ env.GH_TOKEN }} | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- name: Run tests | |
run: ./gradlew test jacocoTestReport | |
- name: Generate JaCoCo Badge | |
uses: cicirello/jacoco-badge-generator@v2 | |
with: | |
generate-branches-badge: true | |
jacoco-csv-file: build/reports/jacoco/test/jacocoTestReport.csv | |
- name: Commit the badge (if it changed) | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
if [[ `git status --porcelain` ]]; then | |
git config --global user.name 'jacoco' | |
git config --global user.email '[email protected]' | |
git status | |
git add '*.svg' | |
git commit -m "Autogenerated JaCoCo coverage badge" | |
git push | |
fi | |
- name: Bump version and push tag | |
uses: anothrNick/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
WITH_V: true |