Skip to content
Open
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
150 changes: 83 additions & 67 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,29 @@ jobs:

steps:
- name: Checkout this repository
uses: actions/checkout@v4
uses: actions/checkout@v7
with:
lfs: true

- name: Checkout actions repository
uses: actions/checkout@v4
- name: Checkout multi-consumer root
uses: actions/checkout@v7
with:
repository: Exabyte-io/actions
repository: mat3ra/web-app
# TODO: use main after references runner lands on web-app main
ref: chore/SOF-7942
token: ${{ secrets.BOT_GITHUB_TOKEN }}
path: actions
path: root

- name: Initialize multi-consumer root
uses: ./root/.github/actions/init-multi-consumer-root
with:
multi-consumer-root: root
ssh-private-key: ${{ secrets.BOT_GITHUB_KEY }}
# TODO: drop actions-ref after post-npm-install lands on actions main
actions-ref: chore/SOF-7942

- name: Run ruff linter
uses: ./actions/py/lint
uses: ./root/reference/actions/py/lint
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -43,19 +53,27 @@ jobs:

steps:
- name: Checkout this repository
uses: actions/checkout@v4
uses: actions/checkout@v7
with:
lfs: true

- name: Checkout actions repository
uses: actions/checkout@v4
- name: Checkout multi-consumer root
uses: actions/checkout@v7
with:
repository: Exabyte-io/actions
repository: mat3ra/web-app
ref: chore/SOF-7942
token: ${{ secrets.BOT_GITHUB_TOKEN }}
path: actions
path: root

- name: Initialize multi-consumer root
uses: ./root/.github/actions/init-multi-consumer-root
with:
multi-consumer-root: root
ssh-private-key: ${{ secrets.BOT_GITHUB_KEY }}
actions-ref: chore/SOF-7942

- name: Run python unit tests
uses: ./actions/py/pytest
uses: ./root/reference/actions/py/pytest
with:
python-version: ${{ matrix.python-version }}
unit-test-directory: tests/py/unit
Expand All @@ -70,28 +88,47 @@ jobs:
- 22.x

steps:
- name: Checkout this repository
uses: actions/checkout@v4
- name: Checkout multi-consumer root
uses: actions/checkout@v7
with:
repository: mat3ra/web-app
# TODO: use main after references runner lands on web-app main
ref: chore/SOF-7942
token: ${{ secrets.BOT_GITHUB_TOKEN }}
path: root
lfs: true

- name: Checkout actions repository
uses: actions/checkout@v4
- name: Checkout package under test
uses: actions/checkout@v7
with:
repository: Exabyte-io/actions
token: ${{ secrets.BOT_GITHUB_TOKEN }}
path: actions
path: root/reference/code
lfs: true

- name: Initialize multi-consumer root
uses: ./root/.github/actions/init-multi-consumer-root
with:
multi-consumer-root: root
ssh-private-key: ${{ secrets.BOT_GITHUB_KEY }}
node-version: ${{ matrix.node-version }}
# TODO: drop actions-ref after post-npm-install lands on actions main
actions-ref: chore/SOF-7942

- name: Run JS validate
uses: ./actions/js/validate
uses: ./root/reference/actions/js/validate
with:
node-version: "14.x"
node-version: ${{ matrix.node-version }}
package-directory: root/reference/code
skip-eslint: "true"

- name: Run JS tests
uses: ./actions/js/test
uses: ./root/reference/actions/js/test
with:
node-version: ${{ matrix.node-version }}
package-directory: root/reference/code
npm-options: "--legacy-peer-deps"
post-npm-install: |
npm run references:sync
npm run references:install

publish-js-package:
needs:
Expand All @@ -103,17 +140,23 @@ jobs:

steps:
- name: Checkout this repository
uses: actions/checkout@v4
uses: actions/checkout@v7

- name: Checkout actions repository
uses: actions/checkout@v4
- name: Checkout multi-consumer root
uses: actions/checkout@v7
with:
repository: Exabyte-io/actions
repository: mat3ra/web-app
token: ${{ secrets.BOT_GITHUB_TOKEN }}
path: actions
path: root

- name: Initialize multi-consumer root
uses: ./root/.github/actions/init-multi-consumer-root
with:
multi-consumer-root: root
ssh-private-key: ${{ secrets.BOT_GITHUB_KEY }}

- name: Publish JS release
uses: ./actions/js/publish
uses: ./root/reference/actions/js/publish
with:
npm-token: ${{ secrets.NPM_TOKEN }}
github-token: ${{ secrets.BOT_GITHUB_TOKEN }}
Expand All @@ -128,54 +171,27 @@ jobs:

steps:
- name: Checkout this repository
uses: actions/checkout@v4
uses: actions/checkout@v7
with:
lfs: true

- name: Checkout actions repository
uses: actions/checkout@v4
- name: Checkout multi-consumer root
uses: actions/checkout@v7
with:
repository: Exabyte-io/actions
repository: mat3ra/web-app
token: ${{ secrets.BOT_GITHUB_TOKEN }}
path: actions
path: root

- name: Initialize multi-consumer root
uses: ./root/.github/actions/init-multi-consumer-root
with:
multi-consumer-root: root
ssh-private-key: ${{ secrets.BOT_GITHUB_KEY }}

- name: Publish python release
uses: ./actions/py/publish
uses: ./root/reference/actions/py/publish
with:
python-version: 3.10.x
github-token: ${{ secrets.BOT_GITHUB_TOKEN }}
pypi-api-token: ${{ secrets.PYPI_API_TOKEN }}
publish-tag: "false"
# TB disabled on 2024-03-21 as not practically useful at this time
# create-pr-in-a-dependant:
# needs: [publish-js-package]
# runs-on: ubuntu-latest
# if: (github.repository != 'Exabyte-io/template-definitions') && (github.ref_name == 'main')
# strategy:
# matrix:
# target-repository:
# - Exabyte-io/ade.js
# - Exabyte-io/application-flavors
# - Exabyte-io/ide.js
# - Exabyte-io/made.js
# - Exabyte-io/mode.js
# - Exabyte-io/prode.js
# - Exabyte-io/wode.js
# - Exabyte-io/materials-designer
# - Exabyte-io/web-app
#
# steps:
# - name: Checkout actions repository
# uses: actions/checkout@v4
# with:
# repository: Exabyte-io/actions
# token: ${{ secrets.BOT_GITHUB_TOKEN }}
# path: actions
#
# - name: Create a PR
# uses: ./actions/git/pull-request
# with:
# github-token: ${{ secrets.BOT_GITHUB_TOKEN }}
# target-repository: ${{ matrix.target-repository }}
# source-package-name: "@exabyte-io/code.js"
# target-version: ${{ needs.publish-js-package.outputs.release-version }}
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ __pycache__/
*.so

# Distribution / packaging
# "dist" folder is not ignored on purpose to be able to install intermediate changes from github commits
# dist
# Built by `npm run transpile` (references:install / publish / local).
dist/
.Python
build/
develop-eggs/
Expand Down
2 changes: 0 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@
. "$(dirname "$0")/_/husky.sh"

npm run lint:fix
npm run transpile
git add dist
29 changes: 0 additions & 29 deletions dist/js/ArrayWithIds.d.ts

This file was deleted.

119 changes: 0 additions & 119 deletions dist/js/ArrayWithIds.js

This file was deleted.

Loading
Loading