Skip to content

ci: Various workflow improvements #45

ci: Various workflow improvements

ci: Various workflow improvements #45

Workflow file for this run

name: CI
on:
workflow_dispatch:
pull_request:
branches: [ main ]
push:
branches: [ main ]
schedule:
- cron: 0 0 * * 3
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
pre-commit:
uses: ./.github/workflows/step_pre-commit.yaml
tests:
needs: [ pre-commit ]
uses: ./.github/workflows/step_test.yaml
with:
report-experimental: false
docs:
needs: [ pre-commit ]
uses: ./.github/workflows/step_docs.yaml
coverage:
needs: [ tests ]
uses: ./.github/workflows/step_coverage.yaml
if: github.event_name != "schedule"

Check failure on line 36 in .github/workflows/ci.yaml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yaml (Line: 36, Col: 9): Unexpected symbol: '"schedule"'. Located at position 22 within expression: github.event_name != "schedule"
static-analysis:
needs: [ pre-commit ]
uses: ./.github/workflows/step_static-analysis.yaml
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
if: github.event_name != 'schedule'
pass:
needs: [ pre-commit, tests, coverage, docs, static-analysis ]
runs-on: ubuntu-latest
steps:
- name: Check all CI jobs
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}
allowed-skips: coverage, static-analysis
if: always()