Skip to content

Commit 4857726

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

File tree

9 files changed

+544
-6
lines changed

9 files changed

+544
-6
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Code PushUp
2+
description: Minimalist GitHub Action that executes Code PushUp using local @code-pushup/ci source code
3+
4+
runs:
5+
using: composite
6+
steps:
7+
- name: Install dependencies
8+
run: npm ci
9+
shell: bash
10+
working-directory: .github/actions/code-pushup
11+
- name: Run Node script
12+
run: npx tsx --tsconfig .github/actions/code-pushup/tsconfig.json .github/actions/code-pushup/src/runner.ts
13+
shell: bash
14+
env:
15+
GH_TOKEN: ${{ secrets.GITHUB_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)