Skip to content

Commit 8e02a42

Browse files
Introduce actionlint to lint GitHub Actions workflows (crystal-lang#15449)
1 parent 0f6bfdb commit 8e02a42

4 files changed

Lines changed: 41 additions & 2 deletions

File tree

.github/actionlint.yaml

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

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
run: bin/ci with_build_env 'make crystal docs threads=1'
3232

3333
- name: Set revision
34-
run: echo $GITHUB_SHA > ./docs/revision.txt
34+
run: echo "$GITHUB_SHA" > ./docs/revision.txt
3535

3636
- name: Configure AWS Credentials
3737
uses: aws-actions/configure-aws-credentials@v4
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Lint GitHub Actions workflows
2+
on:
3+
push:
4+
paths:
5+
- '.github/workflows/*.yml'
6+
pull_request:
7+
paths:
8+
- '.github/workflows/*.yml'
9+
10+
jobs:
11+
actionlint:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Check workflow files
16+
uses: docker://rhysd/actionlint:latest

.github/workflows/wasm32.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc
3333
apt-add-repository -y deb http://apt.llvm.org/noble/ llvm-toolchain-noble-18 main
3434
apt-get install -y llvm-18-dev lld-18
35-
ln -s $(which wasm-ld-18) /usr/bin/wasm-ld
35+
ln -s "$(which wasm-ld-18)" /usr/bin/wasm-ld
3636
3737
- name: Download wasm32 libs
3838
run: |

0 commit comments

Comments
 (0)