Skip to content

Commit

Permalink
remove JS wrappers from this repo
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Whitehead <[email protected]>
  • Loading branch information
andrewwhitehead committed Nov 27, 2024
1 parent 8a9f501 commit 21dc102
Show file tree
Hide file tree
Showing 120 changed files with 6 additions and 26,325 deletions.
22 changes: 5 additions & 17 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# For details on how this file works refer to:
# - https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
# For details on how this file works refer to:
# - https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
version: 2
updates:
# Maintain dependencies for GitHub Actions
Expand All @@ -11,19 +11,7 @@ updates:
interval: "weekly"
groups:
all-actions:
patterns: [ "*" ]

# Maintain dependencies for TypeScript and JavaScript
- package-ecosystem: "npm"
directory: "/wrappers/javascript"
schedule:
interval: "weekly"
day: "monday"
time: "04:00"
timezone: "Canada/Pacific"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-major", "version-update:semver-patch"]
patterns: ["*"]

# Maintain dependencies for pip
- package-ecosystem: "pip"
Expand All @@ -35,7 +23,8 @@ updates:
timezone: "Canada/Pacific"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-major", "version-update:semver-patch"]
update-types:
["version-update:semver-major", "version-update:semver-patch"]

# Maintain dependencies for Cargo Packages
- package-ecosystem: "cargo"
Expand All @@ -60,4 +49,3 @@ updates:
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-major"]

93 changes: 1 addition & 92 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@ on:
required: true
default: false
type: boolean
publish-javascript-wrapper:
description: "Publish JavaScript Wrapper to Registries"
required: true
default: false
type: boolean

jobs:
checks:
Expand Down Expand Up @@ -310,92 +305,6 @@ jobs:
twine upload --skip-existing dist/*
working-directory: wrappers/python
build-javascript:
name: Build and test JavaScript wrapper
needs: [build-release]

strategy:
matrix:
architecture: [linux-aarch64, linux-x86_64, darwin-universal]
include:
- os: ubuntu-latest
architecture: linux-aarch64
- os: ubuntu-latest
architecture: linux-x86_64
- os: macos-latest
architecture: darwin-universal

runs-on: ${{ matrix.os }}

defaults:
run:
working-directory: wrappers/javascript

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Node.JS 18.x
uses: actions/setup-node@v4
with:
node-version: 18.x

- uses: pnpm/action-setup@v4
with:
version: 9

- name: Fetch library artifacts
uses: actions/download-artifact@v4
with:
name: library-${{ matrix.architecture }}

- name: Install python dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine auditwheel
- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Build
run: pnpm build

- name: Lint
run: pnpm lint

- name: Check format
run: pnpm check-format

- name: Check types
run: pnpm check-types

- name: Run tests
if: ${{ matrix.architecture != 'linux-aarch64' }}
env:
# binary is downloaded to root of repository
LIB_ARIES_ASKAR_PATH: ../../
run: pnpm test

- name: Set NPM config
if: |
github.event_name == 'release' ||
(github.event_name == 'workflow_dispatch' && github.event.inputs.publish-javascript-wrapper == 'true')
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> .npmrc
echo "registry=https://registry.npmjs.org/" >> .npmrc
echo "always-auth=true" >> .npmrc
- name: Publish JavaScript Wrapper
if: |
github.event_name == 'release' ||
(github.event_name == 'workflow_dispatch' && github.event.inputs.publish-javascript-wrapper == 'true')
run: |
if [[ $(cat lerna.json | grep version | head -1 | grep dev) ]]; then
pnpm release:alpha
else
pnpm release
fi
build-ios:
name: Build library (iOS)
needs: [checks]
Expand Down Expand Up @@ -580,7 +489,7 @@ jobs:
build-success:
# see https://github.community/t/status-check-for-a-matrix-jobs/127354/7
name: Successful build
needs: [tests, build-release, build-py, build-javascript]
needs: [tests, build-release, build-py]
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
Expand Down
71 changes: 0 additions & 71 deletions wrappers/javascript/.eslintrc.yaml

This file was deleted.

53 changes: 0 additions & 53 deletions wrappers/javascript/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion wrappers/javascript/.prettierignore

This file was deleted.

5 changes: 0 additions & 5 deletions wrappers/javascript/.prettierrc

This file was deleted.

20 changes: 0 additions & 20 deletions wrappers/javascript/jest.config.ts

This file was deleted.

6 changes: 0 additions & 6 deletions wrappers/javascript/lerna.json

This file was deleted.

51 changes: 0 additions & 51 deletions wrappers/javascript/package.json

This file was deleted.

Loading

0 comments on commit 21dc102

Please sign in to comment.