Skip to content

Commit

Permalink
fix: Remove obsolete GH actions
Browse files Browse the repository at this point in the history
Signed-off-by: Gordon Smith <[email protected]>
  • Loading branch information
GordonSmith committed Oct 23, 2024
1 parent 3eb509e commit 7469b6c
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 109 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/npmPublish.yml

This file was deleted.

29 changes: 18 additions & 11 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
steps:
- name: Initialize Release Please
id: release
if: ${{ github.event_name == 'push' }}
uses: googleapis/release-please-action@v4
with:
target-branch: ${{ github.ref_name }}
Expand All @@ -24,66 +25,72 @@ jobs:
manifest-file: .release-please-manifest.json

- name: Checkout Sources
if: ${{ steps.release.outputs.release_created }}
if: ${{ github.event_name == 'pull_request' || steps.release.outputs.release_created }} if: ${{ steps.release.outputs.release_created }}
uses: actions/checkout@v4

- name: Install NodeJS
if: ${{ steps.release.outputs.release_created }}
if: ${{ github.event_name == 'pull_request' || steps.release.outputs.release_created }}
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: "https://registry.npmjs.org"
scope: "@hpcc-js"

- name: Install OS Dependencies
if: ${{ steps.release.outputs.release_created }}
if: ${{ github.event_name == 'pull_request' || steps.release.outputs.release_created }}
run: |
pip install pandas scikit-learn
- name: Export GitHub Actions cache environment variables
if: ${{ steps.release.outputs.release_created }}
if: ${{ github.event_name == 'pull_request' || steps.release.outputs.release_created }}
uses: actions/github-script@v7
with:
script: |
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
- name: Install Dependencies
if: ${{ steps.release.outputs.release_created }}
if: ${{ github.event_name == 'pull_request' || steps.release.outputs.release_created }}
run: |
npm ci
- name: Lint
if: ${{ steps.release.outputs.release_created }}
if: ${{ github.event_name == 'pull_request' || steps.release.outputs.release_created }}
run: |
npm run lint-all
- name: Build
if: ${{ steps.release.outputs.release_created }}
if: ${{ github.event_name == 'pull_request' || steps.release.outputs.release_created }}
run: |
npm run stamp-all
npm run build
npm run minimize
npm run gen-legacy-types
npm run compile-umd
npm run build-gallery
npm run build-test
- name: Install Test Dependencies
if: ${{ steps.release.outputs.release_created }}
if: ${{ github.event_name == 'pull_request' || steps.release.outputs.release_created }}
run: |
sudo apt-get update
sudo npx -y playwright install chromium --with-deps
npx -y playwright install chromium
wget https://github.com/hpcc-systems/HPCC-Platform/releases/download/community_9.6.50-1/hpccsystems-platform-community_9.6.50-1jammy_amd64_withsymbols.deb
- name: Install HPCC Platform
if: ${{ steps.release.outputs.release_created }}
if: ${{ github.event_name == 'pull_request' || steps.release.outputs.release_created }}
continue-on-error: true
run: |
sudo apt install -f ./hpccsystems-platform-community_9.6.50-1jammy_amd64_withsymbols.deb
sudo /etc/init.d/hpcc-init start
- name: Test
if: ${{ steps.release.outputs.release_created }}
if: ${{ github.event_name == 'pull_request' || steps.release.outputs.release_created }}
env:
CI: true
run: |
npm run test-local
npm run test
# - name: Calculate Coverage
# if: ${{ steps.release.outputs.release_created }}
Expand Down
14 changes: 0 additions & 14 deletions .github/workflows/releaseOnTag.yml

This file was deleted.

39 changes: 0 additions & 39 deletions .github/workflows/testPullRequest.yml

This file was deleted.

17 changes: 3 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"clean": "lerna run clean && npm run clean-root",
"stamp": "lerna run stamp",
"stamp-main": "node ./utils/bundle/src/stamp-main.js",
"stamp-all": "run-s stamp stamp-main",
"compile-es6": "lerna run --ignore \"@hpcc-js/test-*\" compile-es6",
"compile-es6-watch": "lerna run --no-sort --stream --ignore \"@hpcc-js/test-*\" compile-es6-watch",
"compile-umd": "lerna run --ignore \"@hpcc-js/test-*\" compile-umd",
Expand Down Expand Up @@ -92,20 +93,8 @@
"test:chrome": "lerna run test:chrome --scope \"@hpcc-js/test-*\"",
"test:firefox": "lerna run test:firefox --scope \"@hpcc-js/test-*\"",
"test:ie": "lerna run test:ie --scope \"@hpcc-js/test-*\"",
"publish-clean-lint": "run-p lint clean",
"publish-changed": "lerna changed",
"publish-version": "lerna version --no-push --yes",
"publish-update-lock": "npm i --package-lock-only",
"publish-tag": "node ./utils/bundle/src/tag.js",
"publish-commit": "git commit -a -m \"chore(publish): Bump versions and build all\"",
"publish-push": "git push --follow-tags upstream",
"publish": "lerna publish from-package --yes",
"publish-lerna": "lerna publish from-package --yes",
"publish-manual": "run-s lint build minimize gen-legacy-types compile-umd publish-lerna",
"publish-prep": "run-s publish-clean-lint publish-version stamp build-all minimize gen-legacy-types test",
"publish-finalize": "run-s publish-commit publish-lerna",
"publish-gh-actions": "npm ci && npm run lint && npm run build && npm run minimize && npm run compile-umd && npm run build-gallery && npm run build-test && npm run test && npm run publish-lerna",
"publish": "lerna publish from-package -y",
"tag": "run-s publish-version stamp stamp-main publish-update-lock publish-commit publish-tag publish-push",
"purge-jsdelivr": "node ./utils/purge-jsdelivr.js",
"serve-docs": "vitepress dev .",
"serve-docs-build": "vitepress serve --port 3000 .",
Expand Down Expand Up @@ -179,4 +168,4 @@
"author": "HPCC Systems",
"license": "Apache-2.0",
"homepage": "https://github.com/hpcc-systems/Visualization"
}
}

0 comments on commit 7469b6c

Please sign in to comment.