Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/onRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
registry-url: https://registry.npmjs.org
- name: Install npm >= 11.5.1
run: npm install -g "npm@>=11.5.1"
- run: pnpm install
- run: pnpm install --frozen-lockfile
- run: pnpm build
- run: pnpm prepack
- run: npm publish --provenance --access public
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,22 @@ name: tests
on:
push:
branches-ignore: [main]
paths-ignore:
- '**.md'
- 'LICENSE'
- '.gitignore'
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
unit-tests:
strategy:
matrix:
os: ['ubuntu-latest']
node_version: [lts/-1, lts/*, 24]
node_version: [lts/*, 24]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -31,6 +39,8 @@ jobs:
solana: ${{ env.SOLANA_VERSION }}
cache: true
artifacts: false
- run: pnpm install
- run: pnpm install --frozen-lockfile
- run: pnpm run build
env:
CI: true
- run: pnpm run test
1 change: 1 addition & 0 deletions .mocharc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"recursive": true,
"reporter": "spec",
"timeout": 60000,
"parallel": true,
"node-option": [
"loader=ts-node/esm",
"experimental-specifier-resolution=node"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
"repository": "metaplex-foundation/cli",
"scripts": {
"clean": "shx rm -rf dist tsconfig.build.tsbuildinfo",
"prebuild": "pnpm run clean",
"prebuild": "if [ -z \"$CI\" ]; then pnpm run clean; fi",
"build": "tsc -b tsconfig.build.json --verbose",
"build:clean": "pnpm run clean && pnpm run build",
"dev": "./bin/dev.js",
Expand Down
Loading