X Tutup
Skip to content

Commit 60edcd9

Browse files
ShaharNavehCopilot
authored andcommitted
Add actionlint step (#7464)
1 parent e609658 commit 60edcd9

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,9 @@ jobs:
411411
- run: ruff format --check
412412

413413
- name: install prettier
414-
run: yarn global add prettier && echo "$(yarn global bin)" >>$GITHUB_PATH
414+
run: |
415+
yarn global add prettier
416+
yarn global bin >> "$GITHUB_PATH"
415417
416418
- name: check wasm code with prettier
417419
# prettier doesn't handle ignore files very well: https://github.com/prettier/prettier/issues/8506
@@ -487,7 +489,8 @@ jobs:
487489
cache-dependency-path: "wasm/demo/package-lock.json"
488490
- name: run test
489491
run: |
490-
export PATH=$PATH:`pwd`/../../geckodriver
492+
driver_path="$(pwd)/../../geckodriver"
493+
export PATH="$PATH:${driver_path}"
491494
npm install
492495
npm run test
493496
env:
@@ -551,6 +554,6 @@ jobs:
551554
- name: build rustpython
552555
run: cargo build --release --target wasm32-wasip1 --features freeze-stdlib,stdlib --verbose
553556
- name: run snippets
554-
run: wasmer run --dir `pwd` target/wasm32-wasip1/release/rustpython.wasm -- `pwd`/extra_tests/snippets/stdlib_random.py
557+
run: wasmer run --dir $(pwd) target/wasm32-wasip1/release/rustpython.wasm -- "$(pwd)/extra_tests/snippets/stdlib_random.py"
555558
- name: run cpython unittest
556-
run: wasmer run --dir `pwd` target/wasm32-wasip1/release/rustpython.wasm -- `pwd`/Lib/test/test_int.py
559+
run: wasmer run --dir $(pwd) target/wasm32-wasip1/release/rustpython.wasm -- "$(pwd)/Lib/test/test_int.py"

.github/workflows/pr-format.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
with:
2929
persist-credentials: false
3030

31+
- uses: reviewdog/action-actionlint@0d952c597ef8459f634d7145b0b044a9699e5e43 # v1.71.0
32+
3133
- name: Setup Rust
3234
uses: dtolnay/rust-toolchain@stable
3335
with:

0 commit comments

Comments
 (0)
X Tutup