ci: unscoped npm package check
This commit is contained in:
parent
40279fe668
commit
32f0159319
|
@ -119,8 +119,8 @@ jobs:
|
||||||
- name: Install rust toolchain
|
- name: Install rust toolchain
|
||||||
uses: dtolnay/rust-toolchain@master
|
uses: dtolnay/rust-toolchain@master
|
||||||
with:
|
with:
|
||||||
toolchain: ${{ steps.toolchain.outputs.version }}
|
toolchain: ${{ steps.toolchain.outputs.version }}
|
||||||
components: "clippy,rustfmt"
|
components: "clippy,rustfmt"
|
||||||
|
|
||||||
- name: Cache rust packages
|
- name: Cache rust packages
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
|
@ -139,11 +139,11 @@ jobs:
|
||||||
|
|
||||||
- name: Run `cargo check`
|
- name: Run `cargo check`
|
||||||
run: cargo check --workspace --tests --manifest-path solana/Cargo.toml
|
run: cargo check --workspace --tests --manifest-path solana/Cargo.toml
|
||||||
--features "nft-bridge/instructions token-bridge/instructions wormhole-bridge-solana/instructions"
|
--features "nft-bridge/instructions token-bridge/instructions wormhole-bridge-solana/instructions"
|
||||||
|
|
||||||
- name: Run `cargo clippy`
|
- name: Run `cargo clippy`
|
||||||
run: cargo clippy --workspace --tests --manifest-path solana/Cargo.toml
|
run: cargo clippy --workspace --tests --manifest-path solana/Cargo.toml
|
||||||
--features "nft-bridge/instructions token-bridge/instructions wormhole-bridge-solana/instructions"
|
--features "nft-bridge/instructions token-bridge/instructions wormhole-bridge-solana/instructions"
|
||||||
|
|
||||||
- name: Cache solana tools
|
- name: Cache solana tools
|
||||||
id: cache-solana
|
id: cache-solana
|
||||||
|
@ -233,7 +233,7 @@ jobs:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: '1.19.0'
|
go-version: "1.19.0"
|
||||||
- run: curl https://get.ignite.com/cli@v0.23.0 | bash && mv ignite /usr/local/bin/
|
- run: curl https://get.ignite.com/cli@v0.23.0 | bash && mv ignite /usr/local/bin/
|
||||||
- run: cd wormhole_chain && make proto -B && make test
|
- run: cd wormhole_chain && make proto -B && make test
|
||||||
|
|
||||||
|
@ -302,3 +302,10 @@ jobs:
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- run: chmod 755 ./scripts/check-docker-pin.sh
|
- run: chmod 755 ./scripts/check-docker-pin.sh
|
||||||
- run: ./scripts/check-docker-pin.sh
|
- run: ./scripts/check-docker-pin.sh
|
||||||
|
npm-packages:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out source
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- run: chmod 755 ./scripts/check-npm-package-scopes.sh
|
||||||
|
- run: ./scripts/check-npm-package-scopes.sh
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# This script checks to ensure that all our NPM packages have an appropriate scope.
|
||||||
|
#
|
||||||
|
git ls-files | grep "package.json" | xargs grep -s "\"name\":" | egrep -v '@certusone/|@wormhole-foundation/'
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
echo "[!] Unscoped npm packages" >&2
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "[+] No unscoped npm packages"
|
||||||
|
fi
|
Loading…
Reference in New Issue