Skip to content

Commit

Permalink
chore: update git workflow compatible with aptos (#8)
Browse files Browse the repository at this point in the history
* chore: update git workflow compatible with aptos

* chore: fix npx command
  • Loading branch information
Tranduy1dol committed Jul 9, 2024
1 parent 00fc6f5 commit a614646
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ jobs:
- name: Run llvm-cov
run: |
cargo llvm-cov nextest --release --lcov --output-path lcov.info --test-threads=1
sudo apt install build-essential cmake pkg-config libudev-dev
RUSTFLAGS="--cfg tokio_unstable" cargo llvm-cov nextest --release --lcov --output-path lcov.info --test-threads=1
- name: Upload coverage to codecov.io
uses: codecov/codecov-action@v3
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/linters-cargo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
- uses: Swatinem/rust-cache@v2
- name: Format and clippy
run: |
cargo fmt -- --check
cargo clippy --no-deps -- -D warnings
cargo clippy --tests --no-deps -- -D warnings
sudo apt install build-essential cmake pkg-config libudev-dev
RUSTFLAGS="--cfg tokio_unstable" cargo fmt -- --check
RUSTFLAGS="--cfg tokio_unstable" cargo clippy --no-deps -- -D warnings
RUSTFLAGS="--cfg tokio_unstable" cargo clippy --tests --no-deps -- -D warnings
6 changes: 5 additions & 1 deletion .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ jobs:
- uses: actions/checkout@v3
- name: Run prettier
run: |-
curl -sL https://deb.nodesource.com/setup_18.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh
sudo apt install nodejs -y
npx prettier --check .
markdown-lint:
Expand All @@ -30,4 +33,5 @@ jobs:
- name: Checkout toml files
uses: actions/checkout@v3
- name: Run toml check
run: npx @taplo/cli fmt --config ./taplo/taplo.toml --check
run:
npx @taplo/cli fmt --config ./taplo/taplo.toml --check
3 changes: 2 additions & 1 deletion .github/workflows/rust-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ jobs:

- name: Build the project
run: |
cargo build --release --workspace
sudo apt install build-essential cmake pkg-config libudev-dev
RUSTFLAGS="--cfg tokio_unstable" cargo build --release --workspace

0 comments on commit a614646

Please sign in to comment.