mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-04-22 13:17:41 -04:00
let CI fail if verible catches mismatches to prevent them from being accidentally merged Co-authored-by: JeanRochCoulon <jean-roch.coulon@thalesgroup.com>
24 lines
699 B
YAML
24 lines
699 B
YAML
# Copyright 2023 Thales DIS
|
|
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
name: Verible
|
|
on:
|
|
pull_request_target:
|
|
|
|
jobs:
|
|
format:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
checks: write
|
|
contents: read
|
|
pull-requests: write
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
- uses: chipsalliance/verible-formatter-action@main
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
files: '$(find core -regex ".*\.\(v\|sv\)$" | grep -v "^core/include/.*_config_pkg.sv$")'
|
|
fail_on_formatting_suggestions: true
|