Skip to content

Commit fa90903

Browse files
authored
[ci] Add actionlint job (#1235)
1 parent dc1d78d commit fa90903

File tree

4 files changed

+15
-6
lines changed

4 files changed

+15
-6
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838

3939
steps:
4040
- name: Checkout repository
41-
uses: actions/checkout@v2
41+
uses: actions/checkout@v4
4242

4343
# Initializes the CodeQL tools for scanning.
4444
- name: Initialize CodeQL
@@ -68,4 +68,3 @@ jobs:
6868

6969
- name: Perform CodeQL Analysis
7070
uses: github/codeql-action/analyze@v2
71-

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
sudo apt-get -y update
3131
sudo apt-get -y install gcc-aarch64-linux-gnu
3232
- name: Checkout osxcross
33-
uses: actions/checkout@v2
33+
uses: actions/checkout@v4
3434
with:
3535
repository: tpoechtrager/osxcross
3636
path: osxcross
@@ -41,9 +41,9 @@ jobs:
4141
wget https://github.com/phracker/MacOSX-SDKs/releases/download/11.3/MacOSX11.3.sdk.tar.xz -O tarballs/MacOSX11.3.sdk.tar.xz
4242
echo cd4f08a75577145b8f05245a2975f7c81401d75e9535dcffbb879ee1deefcbf4 tarballs/MacOSX11.3.sdk.tar.xz | sha256sum -c -
4343
UNATTENDED=1 ./build.sh
44-
echo $PWD/target/bin >> $GITHUB_PATH
44+
echo "$PWD/target/bin" >> "$GITHUB_PATH"
4545
- name: Run GoReleaser
46-
uses: goreleaser/goreleaser-action@v2
46+
uses: goreleaser/goreleaser-action@v3
4747
with:
4848
distribution: goreleaser
4949
version: latest

.github/workflows/tests.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ jobs:
3434
- name: Run shellcheck
3535
shell: bash
3636
run: scripts/shellcheck.sh
37+
- name: Run actionlint
38+
shell: bash
39+
run: scripts/actionlint.sh
3740

3841
unit_test:
3942
name: Golang Unit Tests (${{ matrix.os }})
@@ -51,7 +54,7 @@ jobs:
5154
- name: Set timeout on Windows # Windows UT run slower and need a longer timeout
5255
shell: bash
5356
if: matrix.os == 'windows-latest'
54-
run: echo "TIMEOUT=1200s" >> $GITHUB_ENV
57+
run: echo "TIMEOUT=1200s" >> "$GITHUB_ENV"
5558
- run: go mod download
5659
shell: bash
5760
- run: ./scripts/build.sh ./build/subnetevm

scripts/actionlint.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
set -euo pipefail
4+
5+
go install github.com/rhysd/actionlint/cmd/[email protected]
6+
7+
actionlint

0 commit comments

Comments
 (0)