Skip to content

Commit

Permalink
no-scripts, alway run test
Browse files Browse the repository at this point in the history
  • Loading branch information
chrypnotoad committed May 22, 2024
1 parent fed2c7b commit dc5e6f9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 15 deletions.
21 changes: 8 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ jobs:
- name: Set up Node.js
uses: actions/[email protected]
with:
node-version: "${{ vars.NODE_VERSION }}"
node-version: '${{ vars.NODE_VERSION }}'
cache: 'npm'

- name: Install dependencies
run: |
echo "Installing dependencies..."
npm ci
npm ci --ignore-scripts
echo "Dependency installation complete."
- name: Lint
Expand All @@ -42,20 +42,15 @@ jobs:
- name: Build
run: |
echo "Compiling the code..."
npm run compile
echo "Compile complete."
echo "Building the code..."
npm run build
echo "Build complete."
- name: Unit Tests
run: |
echo "Looking for Unit Tests..."
if ls test/*.js 1> /dev/null 2>&1 || ls test/*.ts 1> /dev/null 2>&1; then
echo "Unit Test files found. Running tests..."
npm test
echo "Unit Tests complete."
else
echo "No Unit Test files found. Skipping tests."
fi
echo "Running Unit Tests..."
npm test
echo "Unit Tests complete."
- name: Test apply patches
run: |
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@
"release": "np --no-cleanup --no-yarn --any-branch",
"prepack": "npm run build-node",
"postinstall": "npm run build-rust",
"test": "cargo test",
"test": "npm run test:cargo",
"test2": "ts-node test/test_lru.ts -p 44001 -c 2",
"test:cargo": "cargo test",
"build:rust": "cargo build --workspace && npm run postbuild-cargo",
"postbuild-cargo": "node scripts/copy-rename.js",
"lint": "eslint \"./src/**/*.ts\"",
Expand All @@ -34,7 +35,7 @@
},
"repository": {
"type": "git",
"url": "https://gitlab.com/Shardus/shardus-net.git"
"url": "https://github.com/shardeum/lib-net.git"
},
"publishConfig": {
"access": "public"
Expand Down

0 comments on commit dc5e6f9

Please sign in to comment.