Skip to content

Feat/prover db

Feat/prover db #309

Workflow file for this run

name: main
on:
pull_request:
push:
branches:
- main
- develop
permissions:
contents: read
actions: read
security-events: write
jobs:
# Simple check to verify CI is working
ci-health-check:
runs-on: ubuntu-latest
name: CI Health Check
steps:
- name: Checkout
uses: actions/checkout@v4
- name: CI Health Check
run: |
echo "✅ CI is working!"
echo "✅ Standard GitHub runners operational"
echo "✅ No external dependencies required"
filter-commit-changes:
runs-on: ubuntu-latest
name: Filter commit changes
outputs:
changed-file-count: ${{ steps.filter.outputs.all_count }}
postman: ${{ steps.filter.outputs.postman }}
transaction-exclusion-api: ${{ steps.filter.outputs.transaction-exclusion-api }}
has-changes-requiring-build: ${{ steps.exclusion-filter.outputs.has-changes-requiring-build }}
contracts-excluding-local-deployment-artifacts: ${{ steps.exclusion-filter.outputs.contracts-excluding-local-deployment-artifacts }}
contracts-excluding-local-deployment-artifacts-count: ${{ steps.exclusion-filter.outputs.contracts-excluding-local-deployment-artifacts_count }}
linea-sequencer-plugin: ${{ steps.filter.outputs.linea-sequencer-plugin }}
rln-prover: ${{ steps.filter.outputs.rln-prover }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Filter commit changes
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 #v3.0.2
id: filter
with:
base: ${{ github.ref }}
list-files: "json"
filters: |
all:
- '**/**'
postman:
- 'postman/**'
- 'sdk/**'
- 'ts-libs/linea-native-libs/**'
- '.github/workflows/postman-*.yml'
- '.github/workflows/main.yml'
transaction-exclusion-api:
- 'transaction-exclusion-api/**'
- 'jvm-libs/generic/extensions/futures/**'
- 'jvm-libs/generic/extensions/kotlin/**'
- 'jvm-libs/generic/json-rpc/**'
- 'jvm-libs/generic/persistence/**'
- 'jvm-libs/generic/vertx-helper/**'
- 'jvm-libs/linea/core/long-running-service/**'
- 'jvm-libs/linea/core/metrics/**'
- 'jvm-libs/linea/metrics/**'
- '.github/workflows/transaction-exclusion-api-*.yml'
- '.github/workflows/main.yml'
- 'buildSrc/**'
- 'gradle/**'
- 'build.gradle'
- 'gradle.properties'
- 'settings.gradle'
linea-sequencer-plugin:
- 'besu-plugins/linea-sequencer/**'
- '.github/workflows/linea-sequencer-plugin-testing.yml'
rln-prover:
- 'rln-prover/**'
- '.github/workflows/main.yml'
- '.githb/workflows/rln-prover-tests.yml'
- name: Filter out commit changes
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 #v3.0.2
id: exclusion-filter
with:
base: ${{ github.ref }}
list-files: "json"
filters: |
has-changes-requiring-build:
- '!**/*.md'
- '!**/*.mdx'
- '!**/docs/**'
- '!docs/**'
contracts-excluding-local-deployment-artifacts:
- 'contracts/**'
- '!contracts/local-deployments-artifacts/**'
code-analysis:
uses: ./.github/workflows/codeql.yml
testing:
needs: [ filter-commit-changes ]
if: ${{ needs.filter-commit-changes.outputs.has-changes-requiring-build == 'true' }}
uses: ./.github/workflows/testing.yml
with:
linea_sequencer_changed: ${{ needs.filter-commit-changes.outputs.linea-sequencer-plugin || 'false' }}
postman_changed: ${{ needs.filter-commit-changes.outputs.postman || 'false' }}
transaction_exclusion_api_changed: ${{ needs.filter-commit-changes.outputs.transaction-exclusion-api || 'false' }}
rln_prover_changed: ${{ needs.filter-commit-changes.outputs.rln-prover || 'false' }}
secrets: inherit
# Always complete successfully even if no tests run
ci-summary:
needs: [ ci-health-check, filter-commit-changes, testing ]
if: always()
runs-on: ubuntu-latest
steps:
- name: CI Summary
run: |
echo "🎉 CI workflow completed"
echo "Health check: ${{ needs.ci-health-check.result }}"
echo "Testing needed: ${{ needs.filter-commit-changes.outputs.has-changes-requiring-build }}"
echo "Testing result: ${{ needs.testing.result || 'skipped' }}"