published pypi package 0.4; updated readme (#52) #269
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: MPS-CLI_CI | |
| on: | |
| push: | |
| branches: | |
| - 'main' | |
| pull_request: | |
| workflow_dispatch: | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.MPSCLI_GITHUB_PKG_REGISTRY }} | |
| jobs: | |
| build_mps_cli: | |
| runs-on: ubuntu-latest | |
| env: | |
| DISPLAY: ':99' | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup headless environment | |
| run: | | |
| Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & | |
| chmod 777 mps-cli-gradle-plugin/gradlew | |
| - name: Set up JDK 11 | |
| uses: actions/setup-java@v1 | |
| with: | |
| java-version: 11 | |
| - name: Build MPS-CLI and Test | |
| uses: gradle/gradle-build-action@v2 | |
| with: | |
| arguments: :plugin:functionalTest --debug | |
| wrapper-cache-enabled: true | |
| dependencies-cache-enabled: true | |
| dependencies-cache-key: gradle/dependency-locks/** | |
| dependencies-cache-exact: true | |
| configuration-cache-enabled: true | |
| build-root-directory: mps-cli-gradle-plugin | |
| - uses: actions/upload-artifact@v4 | |
| if: failure() | |
| with: | |
| name: gradle-test-report | |
| path: ./mps-cli-gradle-plugin/plugin/build/reports/ | |
| - name: Publish | |
| uses: gradle/gradle-build-action@v2 | |
| if: github.event_name == 'push' && github.ref_name == 'main' | |
| with: | |
| arguments: :plugin:publish -Pgpr.user=${{github.actor}} -Pgpr.token=${{ secrets.GITHUB_TOKEN }} | |
| wrapper-cache-enabled: true | |
| dependencies-cache-enabled: true | |
| dependencies-cache-key: gradle/dependency-locks/** | |
| dependencies-cache-exact: true | |
| configuration-cache-enabled: true | |
| build-root-directory: mps-cli-gradle-plugin |