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

Add DDEX publisher CI workflow #7408

Merged
merged 3 commits into from
Jan 31, 2024
Merged
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
5 changes: 5 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ jobs:
- ./packages/es-indexer/node_modules
- ./packages/ddex/node_modules
- ./packages/ddex/webapp/node_modules
- ./packages/ddex/publisher/node_modules
- ./packages/trpc-server/node_modules

generate-release-branch:
Expand Down Expand Up @@ -445,6 +446,7 @@ workflows:
packages/identity-service/.* run-identity-workflow true
packages/identity-service/.* run-integration-workflow true
packages/ddex/webapp/.* run-ddex-webapp-workflow true
packages/ddex/publisher/.* run-ddex-publisher-workflow true
eth-contracts/.* run-eth-contracts-workflow true
monitoring/healthz/.* run-healthz-workflow true
protocol-dashboard/.* run-protocol-dashboard-workflow true
Expand All @@ -455,6 +457,7 @@ workflows:
.circleci/.* run-eth-contracts-workflow true
.circleci/.* run-protocol-dashboard-workflow true
.circleci/.* run-ddex-webapp-workflow true
.circleci/.* run-ddex-publisher-workflow true
.circleci/.* run-healthz-workflow true
.circleci/.* run-contracts-workflow true
.circleci/.* run-sdk-workflow true
Expand Down Expand Up @@ -487,6 +490,7 @@ workflows:
packages/libs/.* run-identity-workflow true
packages/libs/.* run-protocol-dashboard-workflow true
packages/libs/.* run-ddex-webapp-workflow true
packages/libs/.* run-ddex-publisher-workflow true
packages/libs/.* run-sdk-workflow true
packages/libs/.* run-web-workflow true
packages/libs/.* run-mobile-workflow true
Expand Down Expand Up @@ -530,6 +534,7 @@ workflows:
packages/web/.* run-web-workflow true
packages/embed/.* run-embed-workflow true
packages/ddex/webapp/.* run-ddex-webapp-workflow true
packages/ddex/publisher/.* run-ddex-publisher-workflow true
protocol-dashboard/.* run-protocol-dashboard-workflow true
monitoring/healthz/.* run-healthz-workflow true
requires:
Expand Down
3 changes: 3 additions & 0 deletions .circleci/src/@continue_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ parameters:
run-ddex-webapp-workflow:
type: boolean
default: false
run-ddex-publisher-workflow:
type: boolean
default: false
# Can enable recurring probers against stage at some point
# workflows:
# version: 2.1
Expand Down
29 changes: 29 additions & 0 deletions .circleci/src/jobs/@ddex-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,32 @@ ddex-webapp-init:
- node_modules
- packages/ddex/node_modules
- packages/ddex/webapp/node_modules

ddex-publisher-init:
working_directory: ~/audius-protocol
docker:
- image: cimg/node:18.17
steps:
- checkout
- attach_workspace:
at: ./

# Download and cache dependencies
- create_concatenated_patch_file:
filename: combined-patch-file.txt

- restore_cache:
keys:
- cache-{{ checksum "package-lock.json" }}-{{ checksum "combined-patch-file.txt" }}

- run:
name: lint & typecheck
command: |
npx turbo run verify --filter=@audius/ddex-publisher

- persist_to_workspace:
root: ./
paths:
- node_modules
- packages/ddex/node_modules
- packages/ddex/publisher/node_modules
3 changes: 3 additions & 0 deletions .circleci/src/workflows/ddex-publisher.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
when: << pipeline.parameters.run-ddex-publisher-workflow >>
jobs:
- ddex-publisher-init
2 changes: 1 addition & 1 deletion .circleci/src/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ jobs:
- push-uptime
- push-ddex-web
- push-ddex-ingester
# - push-ddex-publisher
- push-ddex-publisher
# uncomment these when arm builds are stable
# - push-identity-service-arm
# - push-mediorum-arm
Expand Down
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/ddex/publisher/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"mongoose": "8.1.0"
},
"devDependencies": {
"@types/express": "4.17.21",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-prettier": "5.1.2",
"@typescript-eslint/eslint-plugin": "6.17.0",
Expand Down