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

chore(root): blacksmith.sh: Migrate workflows to Blacksmith #6893

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ on:
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
permissions:
actions: read
contents: read
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/community-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ concurrency:
jobs:
check:
name: Verify
runs-on: ubuntu-20.04
runs-on: blacksmith-4vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
- uses: useblacksmith/setup-node@v5
with:
node-version: 20.8.1
- name: Install Octokit
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/conventional-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ permissions:
jobs:
main:
name: Validate PR titles
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dev-deploy-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
secrets: inherit

deploy_dev_api:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
needs: test_api
timeout-minutes: 80
environment: Development
Expand Down Expand Up @@ -134,7 +134,7 @@ jobs:
url_prefix: '~'

newrelic:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
name: New Relic Deploy
needs: deploy_dev_api
environment: Development
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dev-deploy-web-component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

deploy_web_component:
needs: build
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
timeout-minutes: 80
if: "!contains(github.event.head_commit.message, 'ci skip')"
environment: Development
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dev-deploy-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:

build_dev_worker:
# The type of runner that the job will run on
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
needs: test_worker
timeout-minutes: 80
environment: Development
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
docker_image: ${{ needs.build_dev_worker.outputs.docker_image }}

newrelic:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
name: New Relic Deploy
needs: deploy_dev_workers
environment: Development
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dev-deploy-ws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
# This workflow contains a single job called "build"
deploy_ws:
# The type of runner that the job will run on
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
needs: test_ws
timeout-minutes: 80
environment: Development
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/issue-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ concurrency:
jobs:
check:
name: Verify
runs-on: ubuntu-20.04
runs-on: blacksmith-4vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
- uses: useblacksmith/setup-node@v5
with:
node-version: 20.8.1
- name: Install Octokit
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/jarvis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
jobs:
add-comment:
if: github.event.label.name == '@novu/api'
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
permissions:
issues: write
steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/milestone-assign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:
permissions:
issues: write
pull-requests: write
runs-on: ubuntu-20.04
runs-on: blacksmith-4vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
- uses: useblacksmith/setup-node@v5
with:
node-version: 20.8.1
- name: Install Octokit
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/on-pr-change.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- edited
jobs:
check-branches:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
steps:
- name: Check branches
env:
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/on-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
jobs:
dependency-review:
name: Dependency review
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
environment: Linting
steps:
- name: 'Checkout Repository'
Expand All @@ -23,7 +23,7 @@ jobs:

spellcheck:
name: Spell check
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
environment: Linting
steps:
- uses: actions/checkout@v4
Expand All @@ -35,7 +35,7 @@ jobs:
incremental_files_only: true

find-flags:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
name: Find LaunchDarkly feature flags in diff
environment: Linting
steps:
Expand All @@ -53,7 +53,7 @@ jobs:

get-affected:
name: Get Affected Packages
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
outputs:
test-unit: ${{ steps.get-projects-arrays.outputs.test-unit }}
test-e2e: ${{ steps.get-projects-arrays.outputs.test-e2e }}
Expand Down Expand Up @@ -120,7 +120,7 @@ jobs:

test_unit_providers:
name: Unit test @novu/providers
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
needs: [get-affected]
if: ${{ fromJson(needs.get-affected.outputs.test-providers)[0] }}
timeout-minutes: 80
Expand All @@ -138,7 +138,7 @@ jobs:

test_unit_packages:
name: Unit test @novu public NPM packages (except providers)
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
needs: [get-affected]
if: ${{ fromJson(needs.get-affected.outputs.test-packages)[0] }}
timeout-minutes: 80
Expand Down Expand Up @@ -167,7 +167,7 @@ jobs:

test_unit_libs:
name: Unit test @novu internal packages
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
needs: [get-affected]
if: ${{ fromJson(needs.get-affected.outputs.test-libs)[0] }}
timeout-minutes: 80
Expand All @@ -186,7 +186,7 @@ jobs:

test_unit_services:
name: Unit test backend services
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
needs: [get-affected]
if: ${{ fromJson(needs.get-affected.outputs.test-unit)[0] }}
timeout-minutes: 80
Expand Down Expand Up @@ -215,7 +215,7 @@ jobs:

validate_openapi:
name: Validate OpenAPI
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
needs: [get-affected]
if: ${{ fromJson(needs.get-affected.outputs.test-unit)[0] }}
timeout-minutes: 10
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
contents: read
pull-requests: write
statuses: write
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v4

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-manager.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
steps:
- name: Process stale PRs
uses: actions/stale@v9
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prepare-cloud-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:

jobs:
prepare-cloud-release:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
permissions:
contents: write
pull-requests: write
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/prepare-self-hosted-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ permissions:

jobs:
build_docker:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
timeout-minutes: 90
strategy:
fail-fast: false
Expand All @@ -44,7 +44,7 @@ jobs:
uses: pnpm/action-setup@v3

- name: Use Node.js
uses: actions/setup-node@v4
uses: useblacksmith/setup-node@v5
with:
node-version: 20.8.1
cache: 'pnpm'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/preview-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:

jobs:
publish_preview_packages:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204

steps:
- name: Checkout code
Expand All @@ -21,7 +21,7 @@ jobs:
fetch-depth: 0

- run: corepack enable
- uses: actions/setup-node@v4
- uses: useblacksmith/setup-node@v5
with:
node-version: 20
cache: 'pnpm'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/prod-deploy-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
jobs:
build_prod_image:
# The type of runner that the job will run on
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
timeout-minutes: 80
environment: Production
outputs:
Expand Down Expand Up @@ -108,7 +108,7 @@ jobs:

deploy_docs:
needs: deploy_prod_api_us
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
environment: Production
steps:
- name: Deploy API Documentation
Expand All @@ -118,7 +118,7 @@ jobs:
method: 'POST'

newrelic:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
name: New Relic Deploy
needs: deploy_prod_api_us
environment: Production
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prod-deploy-inbound-mail.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
secrets: inherit

build_prod_image:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
timeout-minutes: 80
environment: Production
outputs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prod-deploy-web-component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

deploy_web_component:
needs: build
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
timeout-minutes: 80
if: "!contains(github.event.head_commit.message, 'ci skip')"
environment: Production
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/prod-deploy-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ env:
jobs:
build_prod_image:
# The type of runner that the job will run on
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
timeout-minutes: 80
environment: Production
outputs:
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:
sentry_project: worker

newrelic:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
name: New Relic Deploy
needs: deploy_prod_workers_us
environment: Production
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prod-deploy-ws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
# This workflow contains a single job called "build"
build_prod_image:
# The type of runner that the job will run on
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
timeout-minutes: 80
environment: Production
outputs:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/reusable-api-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ on:
jobs:
check_submodule_token:
name: Check if the secret exists or not.
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
outputs:
has_token: ${{ steps.secret-check.outputs.has_token }}
steps:
Expand All @@ -53,7 +53,7 @@ jobs:
e2e_api:
name: Test E2E
if: ${{ (contains(inputs.job-name, '-ee') && inputs.test-e2e-ee-affected) || (!contains(inputs.job-name, '-ee') && inputs.test-e2e-affected) }}
runs-on: ubuntu-latest-medium
runs-on: blacksmith-8vcpu-ubuntu-2204
timeout-minutes: 80
permissions:
contents: read
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable-app-service-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ on:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
deploy_service:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
timeout-minutes: 80
environment: ${{ inputs.environment }}
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable-dashboard-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ on:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
reusable_web_deploy:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
timeout-minutes: 80
environment: ${{ inputs.environment }}
permissions:
Expand Down
Loading
Loading