Add native rule implementation for the standard protovalidate rules #1169
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: Conformance | |
| on: | |
| pull_request: | |
| push: | |
| tags: | |
| - 'v*.*.*' | |
| branches: | |
| - 'main' | |
| permissions: | |
| contents: read | |
| jobs: | |
| conformance: | |
| name: Conformance | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Cache Go Modules | |
| uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 | |
| with: | |
| path: | | |
| ~/.cache/go-build | |
| ~/go/pkg/mod | |
| key: ${{ runner.os }}-gomod-conformance-${{ hashFiles('gradle.properties', 'gradle/libs.versions.toml') }} | |
| restore-keys: | |
| ${{ runner.os }}-gomod-conformance- | |
| - uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '21' | |
| cache: 'gradle' | |
| - uses: bufbuild/buf-action@fd21066df7214747548607aaa45548ba2b9bc1ff # v1.4.0 | |
| with: | |
| setup_only: true | |
| token: ${{ secrets.BUF_TOKEN }} | |
| - name: Validate Gradle Wrapper | |
| uses: gradle/actions/wrapper-validation@50e97c2cd7a37755bbfafc9c5b7cafaece252f6e # v6.1.0 | |
| - name: Test conformance (CEL-only — default mode) | |
| run: make conformance | |
| - name: Test conformance (native rules enabled) | |
| run: make conformance-native |