Skip to content

Commit efb960b

Browse files
niwisezelioli
authored andcommitted
ci: Add Cheshire integration, various workflow updates
* Add Cheshire integration tests. * Deactivate 'stale' workflow. * Report formatting issues via github annotations. * Deactivate verible check for external repos due to security concerns (`pull_request_target`) Signed-off-by: Nils Wistoff <nwistoff@iis.ee.ethz.ch>
1 parent 463990f commit efb960b

File tree

3 files changed

+32
-5
lines changed

3 files changed

+32
-5
lines changed

.github/workflows/integration.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Copyright 2024 PULP Platform
2+
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
# Author: Nils Wistoff <nwistoff@iis.ee.ethz.ch>
6+
7+
name: integration
8+
on: [ push, pull_request, workflow_dispatch ]
9+
10+
jobs:
11+
cheshire-integration:
12+
runs-on: ubuntu-latest
13+
timeout-minutes: 200
14+
# Skip on forks due to missing secrets.
15+
if: github.repository == 'pulp-platform/cva6' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository)
16+
steps:
17+
- name: Integrate into cheshire
18+
uses: pulp-platform/pulp-actions/integrate@v2.3.0
19+
with:
20+
ip-name: cva6
21+
org: pulp-platform
22+
repo: cheshire
23+
base-ref: 4098faa23b8686e7a53936634dfd9fee6e88ede9
24+
token: ${{ secrets.CHESHIRE_TOKEN }}
25+
lifetime: 14

.github/workflows/stale.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
name: 'Close stale issues and PRs'
66
on:
7-
workflow_dispatch:
8-
schedule:
9-
- cron: '30 1 * * *'
7+
workflow_dispatch
8+
# schedule:
9+
# - cron: '30 1 * * *'
1010

1111
jobs:
1212
stale:

.github/workflows/verible.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
# SPDX-License-Identifier: Apache-2.0
44

55
name: Verible
6-
on:
7-
pull_request_target:
6+
on: [push, pull_request]
87

98
jobs:
109
format:
@@ -13,6 +12,8 @@ jobs:
1312
checks: write
1413
contents: read
1514
pull-requests: write
15+
# Skip on forks due to missing secrets.
16+
if: github.repository == 'pulp-platform/cva6' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository)
1617
steps:
1718
- uses: actions/checkout@v3
1819
with:
@@ -22,3 +23,4 @@ jobs:
2223
github_token: ${{ secrets.GITHUB_TOKEN }}
2324
files: '$(find core -regex ".*\.\(v\|sv\)$" | grep -v "^core/include/.*_config_pkg\.sv$")'
2425
fail_on_formatting_suggestions: true
26+
reviewdog_reporter: github-check

0 commit comments

Comments
 (0)