Skip to content

Commit 5ed7725

Browse files
committed
ci: fix actionlint and biome install methods
1 parent 9f9af2d commit 5ed7725

1 file changed

Lines changed: 13 additions & 12 deletions

File tree

.github/workflows/ci.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,23 +30,22 @@ jobs:
3030

3131
- name: Install Biome
3232
run: |
33-
tag="%40biomejs/biome%402.3.2"
34-
url="https://github.com/biomejs/biome/releases/download"
35-
curl -fsSL "${url}/${tag}/biome-linux-x64" -o biome
36-
chmod +x biome
37-
sudo mv biome /usr/local/bin/
33+
npm install -g @biomejs/biome@2.3.2
3834
3935
- name: Install just
4036
run: |
41-
url="https://github.com/casey/just/releases/download"
42-
url="${url}/1.46.0/just-1.46.0-x86_64-unknown-linux-musl.tar.gz"
43-
curl -fsSL "${url}" | tar xz -C /usr/local/bin just
37+
JUST_VERSION="1.46.0"
38+
JUST_BASE="https://github.com/casey/just/releases/download"
39+
JUST_TAR="just-${JUST_VERSION}-x86_64-unknown-linux-musl.tar.gz"
40+
curl -fsSL "${JUST_BASE}/${JUST_VERSION}/${JUST_TAR}" | tar xz -C /tmp
41+
sudo mv /tmp/just /usr/local/bin/
4442
4543
- name: Install rumdl
4644
run: |
47-
url="https://github.com/rvben/rumdl/releases/download"
48-
url="${url}/v0.1.26/rumdl-v0.1.26-x86_64-unknown-linux-gnu.tar.gz"
49-
curl -fsSL "${url}" | tar xz
45+
RUMDL_VERSION="v0.1.26"
46+
RUMDL_BASE="https://github.com/rvben/rumdl/releases/download"
47+
RUMDL_TAR="rumdl-${RUMDL_VERSION}-x86_64-unknown-linux-gnu.tar.gz"
48+
curl -fsSL "${RUMDL_BASE}/${RUMDL_VERSION}/${RUMDL_TAR}" | tar xz
5049
sudo mv rumdl /usr/local/bin/
5150
5251
- name: Install linting tools
@@ -71,4 +70,6 @@ jobs:
7170
run: just lint
7271

7372
- name: Lint GitHub Actions workflows
74-
uses: reviewdog/action-actionlint@4b9ef3f43a0b9162e3c83c1a08d1cc8d4235164b # v1.70.0
73+
run: |
74+
bash <(curl -fsSL https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
75+
./actionlint -color

0 commit comments

Comments
 (0)