Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration to v7 #47

Open
wants to merge 41 commits into
base: master
Choose a base branch
from
Open

Migration to v7 #47

wants to merge 41 commits into from

Conversation

anshss
Copy link
Member

@anshss anshss commented Aug 31, 2024

Objective

  • Run tests on each of the subdirectories tests twice a day and on PRs
  • Automatically migrate all subdirectories to the latest SDK version on its release

Changes

  • Configured NX with a monorepo.
  • Configured NX in each directory.
  • All directories have an “update-lit” command configured with NX.
  • This command calls a bash script in all directories to upgrade their Lit packages to the latest version under the scripts directory.
  • Directories containing tests have a “test-lit” command.
  • Both commands can be extended to each new example added by creating a “project.json” file and configuring it with the desired command.
  • There’s no alteration to the structure of subdirectories except for “decrypt-api-key-in-action,” which is moved to a subfolder Nodejs to adhere to the template rules.
  • The dependabot.yml action will regularly check for an SDK update and create a PR if one occurs.
  • The update-lit.yml action can be run manually or will run on PRs created by Dependabot.
  • The test-lit.yml action will run on PRs made to master (or the frequency could be updated later), and all examples will be tested on the latest SDK version.
  • secrets.example file indicates the secret variables needed to serve all the environment variables for tests.

.github/workflows/test-lit.yml Show resolved Hide resolved
.github/workflows/test-lit.yml Show resolved Hide resolved
scripts/update-lit.sh Outdated Show resolved Hide resolved
sign-and-combine-ecdsa/nodejs/project.json Outdated Show resolved Hide resolved
.secrets.example Show resolved Hide resolved
.github/workflows/update-lit.yml Outdated Show resolved Hide resolved
@anshss anshss changed the title CI for dev-guide-examples Migration to v7 Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants