Skip to content

fix: repo-commit, close #17 #49

fix: repo-commit, close #17

fix: repo-commit, close #17 #49

Workflow file for this run

name: GitHub Client Test
on: [ push, pull_request ]
jobs:
check:
runs-on: ubuntu-latest
permissions:
actions: read
checks: read
contents: read
deployments: read
issues: read
packages: read
pull-requests: read
repository-projects: read
security-events: read
statuses: read
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup JDK 11
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '11'
- name: chmod -R 777 *
run: chmod -R 777 *
- name: Init gradle project
run: ./gradlew clean --scan
- name: Assemble
run: ./gradlew assemble --scan
- name: GitHub Owner Test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./gradlew test --tests "io.github.gnuf0rce.mirai.github.GitHubOwnerTest" --scan --info
- name: GitHub Current Test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./gradlew test --tests "io.github.gnuf0rce.mirai.github.GitHubCurrentTest" --scan --info
- name: GitHub Repo Test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./gradlew test --tests "io.github.gnuf0rce.mirai.github.GitHubRepoTest" --scan --info
- name: GitHub Release Plugin Updater Test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./gradlew test --tests "io.github.gnuf0rce.mirai.github.GitHubReleasePluginUpdaterTest" --scan --info
- name: BuildPlugin
run: ./gradlew buildPlugin
- name: Upload
uses: actions/upload-artifact@v3
with:
name: build
path: build/mirai/*