Skip to content

Commit

Permalink
Merge branch 'master' into type-argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Ao-senXiong authored Dec 17, 2024
2 parents 5768f2c + 3081b3a commit c6afb70
Show file tree
Hide file tree
Showing 123 changed files with 2,817 additions and 671 deletions.
5 changes: 5 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
version: 2
updates:
- package-ecosystem: "gradle"
directory: "/"
schedule:
interval: "daily"

- package-ecosystem: "gradle"
directory: "/docs/examples/errorprone/"
schedule:
Expand Down
42 changes: 35 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
name: CI tests

on:
push:
branches: [ "master" ]
pull_request:
push:
branches: [ "master" ]

# Configure GitHub Actions cancel in progress workflow to avoid redundant runs in pull requests.
# See: https://docs.github.com/en/enterprise-cloud@latest/actions/writing-workflows/choosing-what-your-workflow-does/control-the-concurrency-of-workflows-and-jobs
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ !contains(github.ref, 'heads/master')}}

jobs:
# Basic sanity tests on JDK 21.
sanity:
Expand All @@ -30,7 +35,18 @@ jobs:
# Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies.
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4.0.0
uses: gradle/actions/setup-gradle@v4.2.1

- name: Setup Bazel
uses: bazel-contrib/setup-bazel@0.9.1
if: matrix.script == 'cftests-nonjunit'
with:
# Avoid downloading Bazel every time.
bazelisk-cache: true
# Store build cache per workflow.
disk-cache: ${{ github.workflow }}
# Share repository cache between workflows.
repository-cache: true

- name: Run test script checker/bin-devel/test-${{ matrix.script }}
run: ./checker/bin-devel/test-${{ matrix.script }}.sh
Expand All @@ -45,6 +61,7 @@ jobs:
permissions:
contents: read
strategy:
fail-fast: true
matrix:
# No need to run 'cftests-junit-jdk21' on JDK 21.
script: ['typecheck-part1', 'typecheck-part2', 'guava', 'plume-lib', 'daikon-part1', 'daikon-part2', 'jspecify-conformance', 'jspecify-reference-checker']
Expand All @@ -62,7 +79,7 @@ jobs:
# Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies.
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4.0.0
uses: gradle/actions/setup-gradle@v4.2.1

- name: Run test script checker/bin-devel/test-${{ matrix.script }}
run: ./checker/bin-devel/test-${{ matrix.script }}.sh
Expand All @@ -74,7 +91,7 @@ jobs:
permissions:
contents: read
strategy:
fail-fast: false
fail-fast: true
matrix:
# jspecify-conformance and jspecify-reference-checker only tested on JDK 21.
script: ['cftests-junit', 'cftests-nonjunit', 'cftests-junit-jdk21', 'typecheck-part1', 'typecheck-part2', 'guava', 'plume-lib', 'daikon-part1', 'daikon-part2']
Expand Down Expand Up @@ -107,7 +124,18 @@ jobs:
# Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies.
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4.0.0
uses: gradle/actions/setup-gradle@v4.2.1

- name: Setup Bazel
uses: bazel-contrib/setup-bazel@0.9.1
if: matrix.script == 'cftests-nonjunit'
with:
# Avoid downloading Bazel every time.
bazelisk-cache: true
# Store build cache per workflow.
disk-cache: ${{ github.workflow }}
# Share repository cache between workflows.
repository-cache: true

- name: Run test script checker/bin-devel/test-${{ matrix.script }}
run: ./checker/bin-devel/test-${{ matrix.script }}.sh
Expand Down Expand Up @@ -150,7 +178,7 @@ jobs:
# Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies.
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4.0.0
uses: gradle/actions/setup-gradle@v4.2.1

- name: Install coreutils on MacOS
if: matrix.os == 'macos-latest'
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/dependency-generate-and-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ name: Generate and save dependency graph
on:
pull_request:

# Configure GitHub Actions cancel in progress workflow to avoid redundant runs in pull requests.
# See: https://docs.github.com/en/enterprise-cloud@latest/actions/writing-workflows/choosing-what-your-workflow-does/control-the-concurrency-of-workflows-and-jobs
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ !contains(github.ref, 'heads/master')}}

permissions:
contents: read # 'write' permission is not available

Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ name: Dependency review
on:
pull_request:

# Configure GitHub Actions cancel in progress workflow to avoid redundant runs in pull requests.
# See: https://docs.github.com/en/enterprise-cloud@latest/actions/writing-workflows/choosing-what-your-workflow-does/control-the-concurrency-of-workflows-and-jobs
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ !contains(github.ref, 'heads/master')}}

permissions:
contents: read

Expand Down
Loading

0 comments on commit c6afb70

Please sign in to comment.