Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit b5e301b

Browse files
authored
name-service-js: Add to CI, clean up packages (#3097)
1 parent f7d4ebe commit b5e301b

File tree

8 files changed

+2332
-15708
lines changed

8 files changed

+2332
-15708
lines changed

.github/workflows/pull-request-name-service.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,21 @@ jobs:
5656
5757
- name: Build and test
5858
run: ./ci/cargo-test-bpf.sh name-service
59+
60+
js-test:
61+
runs-on: ubuntu-latest
62+
env:
63+
NODE_VERSION: 14.x
64+
steps:
65+
- uses: actions/checkout@v2
66+
- name: Use Node.js ${{ env.NODE_VERSION }}
67+
uses: actions/setup-node@v1
68+
with:
69+
node-version: ${{ env.NODE_VERSION }}
70+
- uses: actions/cache@v2
71+
with:
72+
path: ~/.cache/yarn
73+
key: node-${{ hashFiles('name-service/js/yarn.lock') }}
74+
restore-keys: |
75+
node-
76+
- run: ./ci/js-test-name-service.sh

ci/js-test-name-service.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
cd "$(dirname "$0")/.."
5+
source ./ci/solana-version.sh install
6+
7+
set -x
8+
cd name-service/js
9+
10+
yarn install --pure-lockfile
11+
yarn lint
12+
yarn build

0 commit comments

Comments
 (0)