From 9ef67322025c520291daefb2ffe6e18da4eaa59f Mon Sep 17 00:00:00 2001 From: Mathias Wulff Date: Thu, 15 Aug 2024 21:17:50 +1000 Subject: [PATCH] CICD --- .github/workflows/nodejs.yml | 11 ++--------- package.json | 3 ++- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 8b2e6a11..cbcd196b 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -20,12 +20,5 @@ jobs: uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - - run: yarn --version - - run: bun --version - - run: npx yarn install - - run: npm run build - - run: npm install --location=global . - - run: rexreplace --version - - run: npm run test-format - - run: npm run test-cli - - run: npm run test + - run: yarn install + - run: yarn test-ci diff --git a/package.json b/package.json index 13f8c576..0178978b 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ "test-minify": "yarn build-minify && yarn test-cli && yarn test-js", "test-cli": "npm uninstall --location=global rexreplace && npm --location=global install ./ && yarn test-cli-only # why on earth are they depricating the -g flag", "test-cli-only": "bash test/cli/run.sh", + "test-ci": "yarn test-format && yarn test && yarn test-minify", "test-speed": "bash test/speed/run.sh", "rebase": "yarn is-git-clean && git fetch && git rebase origin/main", "load-options": "# rr -h | rr 'Options:(.+)Examples:' _ -ms | rr '\\n {26,}|\\n\\n *' ' ' | rr \"'\" '`' | rr '^ (-.+?), (--[^ ]+) *' '`€1` | **`€2`** ' | rr '(^---- . ----).+?(## Good to know)' '€1 + nl + pipe + nl + nl + €2' readme.md -jsT", @@ -69,4 +70,4 @@ "globs": "0.1.4", "yargs": "16" } -} \ No newline at end of file +}