fix(test,ci): run all tests in CI, update mcp tool count in test #24
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: [master] | |
| tags: ['v*'] | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v5 | |
| - name: Build | |
| run: ./gradlew shadowJar | |
| - name: Upload JAR | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: smali-lsp-all | |
| path: build/libs/smali-lsp-*-all.jar | |
| archive: false | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v5 | |
| - name: Build JAR | |
| run: ./gradlew shadowJar | |
| - name: Unit tests | |
| run: ./gradlew test --tests "*.unit.*" | |
| - name: Integration tests | |
| run: ./gradlew test --tests "*.integration.*" | |
| - name: Regression tests | |
| run: ./gradlew test --tests "*.regression.*" | |
| - name: Stress tests | |
| run: ./gradlew test --tests "*.stress.*" | |
| - name: Test Report | |
| uses: dorny/test-reporter@v3 | |
| if: always() | |
| with: | |
| name: Test Results | |
| path: build/test-results/test/*.xml | |
| reporter: java-junit | |
| release: | |
| runs-on: ubuntu-latest | |
| needs: [build, test] | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v5 | |
| - name: Build release JAR | |
| run: ./gradlew shadowJar | |
| - name: Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: build/libs/smali-lsp-*-all.jar | |
| generate_release_notes: true |