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

ci: add e2e tests to publish-package action #57

Merged
merged 21 commits into from
Jul 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
32c9f65
ci: add e2e tests to publish-package action
avasisht23 Jul 12, 2023
1554385
ci: add e2e tests to publish-package action
avasisht23 Jul 12, 2023
0d17143
test: remove publish to run workflow manually
avasisht23 Jul 20, 2023
da670f3
ci: add e2e tests to publish-package action
avasisht23 Jul 20, 2023
9704928
ci: add e2e tests to publish-package action
avasisht23 Jul 20, 2023
a4237dd
ci: add e2e tests to publish-package action
avasisht23 Jul 20, 2023
8269666
ci: add e2e tests to publish-package action
avasisht23 Jul 20, 2023
e8ef0f1
ci: add e2e tests to publish-package action
avasisht23 Jul 21, 2023
a8f3009
ci: add e2e tests to publish-package action
avasisht23 Jul 21, 2023
6b88bcc
ci: add e2e tests to publish-package action
avasisht23 Jul 21, 2023
9b3d68f
ci: add e2e tests to publish-package action
avasisht23 Jul 21, 2023
ceac136
ci: add e2e tests to publish-package action
avasisht23 Jul 21, 2023
bf4267d
ci: add e2e tests to publish-package action
avasisht23 Jul 21, 2023
68df661
ci: add e2e tests to publish-package action
avasisht23 Jul 21, 2023
c4386ec
ci: add e2e tests to publish-package action
avasisht23 Jul 21, 2023
9a35ad7
ci: add e2e tests to publish-package action
avasisht23 Jul 21, 2023
2a40fb2
ci: add e2e tests to publish-package action
avasisht23 Jul 22, 2023
1f0821f
ci: add e2e tests to publish-package action
avasisht23 Jul 22, 2023
70be3bf
ci: add e2e tests to publish-package action
avasisht23 Jul 22, 2023
5f406ba
ci: add e2e tests to publish-package action
avasisht23 Jul 22, 2023
9a8d289
test: add e2e
avasisht23 Jul 24, 2023
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
20 changes: 15 additions & 5 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
name: Publish new Package

# workflow dispatch requires a maintainer to go to the Actions tab and manually trigger the workflow
on: workflow_dispatch
on:
workflow_dispatch:
inputs:
publish:
description: "Flag to publish new package"
required: true
default: false
type: boolean

# If we ever migrate this to not be manual, we HAVE to check that the commit
# it is running against DOES NOT contain [skip-ci] in the commit message
Expand Down Expand Up @@ -36,11 +43,14 @@ jobs:
- name: Build
run: yarn build

# TODO: we still need to make the tests work in CI environments
# will come back to this
# - name: Test
# run: yarn test
- name: E2E tests
env:
API_KEY: ${{ secrets.API_KEY }}
OWNER_MNEMONIC: ${{ secrets.OWNER_MNEMONIC }}
PAYMASTER_POLICY_ID: ${{ secrets.PAYMASTER_POLICY_ID }}
run: yarn test:e2e

# Lerna publish will, compute the new version, update files, run precommit hooks, tag, publish, and push change log
- name: Publish using Lerna
if: inputs.publish
run: yarn lerna publish --no-private --yes --no-verify-access
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"build:examples": "lerna run build",
"clean": "lerna run clean",
"test": "lerna run test:run",
"test:e2e": "lerna run test:run-e2e",
"test:e2e": "lerna run test:run-e2e --concurrency=1",
"lint:write": "eslint . --fix && prettier --write --ignore-unknown .",
"lint:check": "eslint . && prettier --check .",
"prepare": "husky install",
Expand Down