mirror of
https://github.com/gradle/actions.git
synced 2025-08-24 10:51:27 +08:00
# Combined PRs ➡️📦⬅️ ✅ The following pull requests have been successfully combined on this PR: - Closes #498 Bump Gradle Wrapper from 8.11.1 to 8.12 in /.github/workflow-samples/kotlin-dsl - Closes #497 Bump Gradle Wrapper from 8.11.1 to 8.12 in /.github/workflow-samples/java-toolchain - Closes #496 Bump Gradle Wrapper from 8.11.1 to 8.12 in /.github/workflow-samples/groovy-dsl - Closes #495 Bump Gradle Wrapper from 8.11.1 to 8.12 in /.github/workflow-samples/gradle-plugin - Closes #494 Bump Gradle Wrapper from 8.11.1 to 8.12 in /sources/test/init-scripts > This PR was created by the [`github/combine-prs`](https://github.com/github/combine-prs) action --------- Signed-off-by: bot-githubaction <bot-githubaction@gradle.com> Co-authored-by: bot-githubaction <bot-githubaction@gradle.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: daz <daz@gradle.com>
44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
name: CI-check-and-unit-test
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
- 'release/**'
|
|
paths-ignore:
|
|
- 'dist/**'
|
|
pull_request:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
check-format-and-unit-test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout sources
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
|
|
with:
|
|
node-version: 20
|
|
cache: npm
|
|
cache-dependency-path: sources/package-lock.json
|
|
- name: Setup Gradle
|
|
# Use a released version to avoid breakages
|
|
uses: gradle/actions/setup-gradle@cc4fc85e6b35bafd578d5ffbc76a5518407e1af0 # v4.2.1
|
|
env:
|
|
ALLOWED_GRADLE_WRAPPER_CHECKSUMS: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 # Invalid wrapper jar used for testing
|
|
with:
|
|
gradle-version: "8.12"
|
|
|
|
- name: Check formatting and compile
|
|
run: |
|
|
npm clean-install
|
|
npm run check
|
|
npm run compile
|
|
working-directory: sources
|
|
- name: Run unit tests
|
|
run: |
|
|
npm test
|
|
working-directory: sources
|