Skip to content

Commit 2ce8e7f

Browse files
committed
feat: add local GitHub Action for testing CI changes
1 parent 8040d3e commit 2ce8e7f

File tree

9 files changed

+552
-4
lines changed

9 files changed

+552
-4
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Code PushUp
2+
description: Minimalist GitHub Action that executes Code PushUp using local @code-pushup/ci source code
3+
4+
inputs:
5+
token:
6+
description: GitHub token for API access
7+
required: true
8+
default: ${{ github.token }}
9+
10+
runs:
11+
using: composite
12+
steps:
13+
- name: Install dependencies
14+
run: npm ci
15+
shell: bash
16+
working-directory: .github/actions/code-pushup
17+
- name: Run Node script
18+
run: npx tsx --tsconfig .github/actions/code-pushup/tsconfig.json .github/actions/code-pushup/src/runner.ts
19+
shell: bash
20+
env:
21+
GH_TOKEN: ${{ inputs.token }}

.github/actions/code-pushup/package-lock.json

Lines changed: 325 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "@code-pushup/local-action",
3+
"version": "0.0.0",
4+
"private": true,
5+
"type": "module",
6+
"description": "Minimalist GitHub Action that executes Code PushUp using local @code-pushup/ci source code for testing CI changes",
7+
"engines": {
8+
"node": ">=20"
9+
},
10+
"dependencies": {
11+
"@actions/core": "^1.10.1",
12+
"@actions/github": "^6.0.0"
13+
},
14+
"devDependencies": {
15+
"@types/node": "^20.0.0",
16+
"typescript": "^5.3.0"
17+
}
18+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "local-action",
3+
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
4+
"sourceRoot": ".github/actions/code-pushup/src",
5+
"projectType": "application",
6+
"targets": {},
7+
"tags": ["type:app"]
8+
}

0 commit comments

Comments
 (0)