Re-enable PR actions for sjonnet #1185
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: Pull Request Validation | |
| on: | |
| pull_request: | |
| branches: [ master ] | |
| permissions: | |
| contents: read | |
| id-token: write | |
| jobs: | |
| build-jvm: | |
| runs-on: | |
| group: databricks-protected-runner-group | |
| labels: linux-ubuntu-latest | |
| timeout-minutes: 20 | |
| name: Sjsonnet jvm build | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # 6.0.2 | |
| - uses: ./.github/actions/setup-build | |
| with: | |
| sbt: 'true' | |
| coursier-cache: 'true' | |
| - name: Check Formatting | |
| run: ./mill "_.jvm[_].__.checkFormat" | |
| - name: Run mill tests | |
| run: ./mill "_.jvm[_].__.test" | |
| - name: Run sbt tests | |
| run: sbt test | |
| build-graal: | |
| runs-on: | |
| group: databricks-protected-runner-group | |
| labels: linux-ubuntu-latest | |
| timeout-minutes: 20 | |
| name: Sjsonnet Graal Native build | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # 6.0.2 | |
| - uses: ./.github/actions/setup-build | |
| with: | |
| coursier-cache: 'true' | |
| - name: Run Native Image Test Suites | |
| run: sjsonnet/test/graalvm/run_test_suites.py | |
| build-other: | |
| runs-on: | |
| group: databricks-protected-runner-group | |
| labels: linux-ubuntu-latest | |
| timeout-minutes: 20 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| lang: ['js', 'wasm'] | |
| name: Sjsonnet ${{ matrix.lang }} build | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # 6.0.2 | |
| - uses: ./.github/actions/setup-build | |
| with: | |
| node: ${{ matrix.lang == 'js' || matrix.lang == 'wasm' }} | |
| sbt: 'true' | |
| coursier-cache: 'true' | |
| - name: Check Formatting | |
| run: ./mill _.${{ matrix.lang }}[_].__.checkFormat | |
| - name: Run mill tests for ${{ matrix.lang }} | |
| run: ./mill _.${{ matrix.lang }}[_].__.test |