Skip to content

#1835 added lexer/parser sources to the vcs #8

#1835 added lexer/parser sources to the vcs

#1835 added lexer/parser sources to the vcs #8

Workflow file for this run

# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: Project Validation
on:
push:
branches: [ "master", "hurricup/dev243" ]
pull_request:
branches: [ "master", "hurricup/dev243" ]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ]
name: "Build"
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: 21
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
cache-read-only: false
- name: Instrumenting tests
run: |
./gradlew jar instrumentTest --console plain
codeql:
needs: build
name: CodeQL
uses: ./.github/workflows/_codeql.yml
secrets: inherit
qodana:
needs: build
name: Qodana
uses: ./.github/workflows/_qodana.yml
secrets: inherit
plugins:
needs: build
name: Plugins
uses: ./.github/workflows/_build_plugins.yml
secrets: inherit
tests:
needs: build
strategy:
fail-fast: false
matrix:
os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ]
name: Tests
uses: ./.github/workflows/_tests.yml
with:
os: ${{ matrix.os }}
secrets: inherit
tests-aggregator:
needs: tests
if: ${{ success() }}
runs-on: ubuntu-latest
name: Tests Results Aggregator
outputs:
success: ${{ steps.aggregate.outputs.success }}
steps:
- id: aggregate
name: Aggregate results
run: echo "success=true" >> $GITHUB_OUTPUT
all-tests:
needs: [ tests, tests-aggregator ]
if: ${{ always() }}
runs-on: ubuntu-latest
name: All tests
steps:
- name: Done
run: |
echo Success flag: ${{ needs.tests-aggregator.outputs.success }}
if [[ "${{ needs.tests-aggregator.outputs.success }}" == "true" ]]; then
echo "Tests passed"
exit 0
else
echo "Tests failed"
exit 1
fi
coverage:
needs: tests
name: Coverage
uses: ./.github/workflows/_coverage.yml
secrets: inherit