Skip to content

Commit 0cac37f

Browse files
committed
Added: enable actionlin
Add actionlint workflow file and configuration file. Signed-off-by: Jiaxing Shi <quic_jiaxshi@quicinc.com>
1 parent 13e96fe commit 0cac37f

File tree

3 files changed

+42
-7
lines changed

3 files changed

+42
-7
lines changed

.github/actionlint.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
self-hosted-runner:
2+
# Labels of self-hosted runner in array of strings.
3+
labels: [self-hosted, x86]
4+
5+
# Configuration variables in array of strings defined in your repository or
6+
# organization. `null` means disabling configuration variables check.
7+
# Empty array means no configuration variable is allowed.
8+
config-variables: null
9+
10+
# Configuration for file paths. The keys are glob patterns to match to file
11+
# paths relative to the repository root. The values are the configurations for
12+
# the file paths. Note that the path separator is always '/'.
13+
# The following configurations are available.
14+
#
15+
# "ignore" is an array of regular expression patterns. Matched error messages
16+
# are ignored. This is similar to the "-ignore" command line option.
17+
paths:
18+
.github/workflows/**/*.{yml,yaml}:
19+
ignore: []

.github/workflows/linter-check.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Lint Actions Workflows
2+
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
8+
jobs:
9+
actionlint:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Run Rhysd actionlint
17+
id: rhysd_actionlint
18+
uses: devops-actions/actionlint@v0.1.9
19+
with:
20+
shellcheck_opts: "--exclude=SC2086"

.github/workflows/quic-organization-repolinter.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
name: QuIC Organization Repolinter
22

3-
on:
4-
push:
5-
branches: [ $default-branch ]
6-
pull_request:
7-
branches: [ $default-branch ]
8-
workflow_dispatch:
3+
on: [push, pull_request]
94

105
jobs:
116
repolinter:
127
runs-on: ubuntu-latest
138
steps:
149
- name: Checkout Repo
15-
uses: actions/checkout@v2
10+
uses: actions/checkout@v4
1611
- name: Verify repolinter config file is present
1712
id: check_files
1813
uses: andstor/file-existence-action@v1
@@ -28,3 +23,4 @@ jobs:
2823
uses: todogroup/repolinter-action@v1
2924
with:
3025
config_url: "https://raw.githubusercontent.com/quic/.github/main/repolint.json"
26+

0 commit comments

Comments
 (0)