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
5 changes: 5 additions & 0 deletions .github/workflows/add-or-validate-labels.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Adds labels to pull requests based on the branch name. Labels are required by the "publish" workflow to determine
name: 'Validate PR labels'

permissions:
contents: read
pull-requests: read
issues: write

on:
workflow_dispatch: # Lets you see what labels would be added, but doesn't actually add them because no PR triggered it
pull_request:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# This is the entry point for CI. It will setup the application, then run lint, test, and eventually publish if not the main branch
name: 'Main'
permissions:
contents: read
on:
workflow_dispatch:
pull_request:
Expand Down Expand Up @@ -53,6 +55,8 @@ jobs:
code-coverage:
needs: test
runs-on: ubuntu-latest
permissions:
contents: write
if: ${{ !startsWith(github.head_ref, 'version-bump') }}
steps:
- uses: actions/checkout@v6
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/open-version-bump-pr.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: 'Open Version Bump PR'

permissions:
contents: read
pull-requests: write
issues: write

on:
workflow_dispatch:
inputs:
Expand Down Expand Up @@ -36,6 +41,9 @@ jobs:
createVersionBumpPR:
if: (github.event.pull_request.merged == true || inputs.version-type != 'none' || inputs.dry-run == 'true') && needs.preflight.outputs.VERSION_INSTRUCTION != 'version-bump'
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
needs: preflight # Will be skipped if preflight is skipped, which causes this to not run on closes w/o merge unless it's a manual run
outputs:
PR_NUMBER: ${{ steps.create-pr.outputs.pull-request-number }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pinned-dependencies.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
name: 'Pinned dependencies'
permissions:
contents: read
on:
push:
pull_request:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"license": "MIT",
"repository": "git://github.com/smartcontractkit/ea-framework-js.git",
"dependencies": {
"ajv": "8.17.1",
"ajv": "8.18.0",
"axios": "1.13.2",
"eventsource": "4.1.0",
"fastify": "5.6.2",
Expand Down
10 changes: 6 additions & 4 deletions scripts/adapter-generator.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
#!/usr/bin/env node

import { resolve } from 'path'
import { execSync } from 'child_process'
import { execFileSync } from 'child_process'

const pathArg = process.argv[2] || ''

const generatorPath = resolve(__dirname, './generator-adapter/generators/app/index.js')
const generatorCommand = `yo ${generatorPath} ${pathArg}`

execSync(generatorCommand, { stdio: 'inherit' })
const args = [generatorPath]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please run this locally on the main EA repo to test out a new adapter generation

if (pathArg) {
args.push(pathArg)
}
execFileSync('yo', args, { stdio: 'inherit' })
1,372 changes: 655 additions & 717 deletions yarn.lock

Large diffs are not rendered by default.