Skip to content

Commit fe852ea

Browse files
committed
refactor: simplify local action setup
1 parent 59ab926 commit fe852ea

File tree

7 files changed

+98
-350
lines changed

7 files changed

+98
-350
lines changed

.github/actions/code-pushup/action.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ inputs:
1010
runs:
1111
using: composite
1212
steps:
13-
- name: Install dependencies
14-
run: npm ci
15-
shell: bash
16-
working-directory: .github/actions/code-pushup
1713
- name: Run Node script
1814
run: npx tsx .github/actions/code-pushup/src/runner.ts
1915
shell: bash

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

Lines changed: 0 additions & 325 deletions
This file was deleted.

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

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,5 @@
33
"version": "0.0.0",
44
"private": true,
55
"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-
}
6+
"description": "Minimalist GitHub Action that executes Code PushUp using local @code-pushup/ci source code for testing CI changes"
187
}

.github/actions/code-pushup/src/runner.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ function createAnnotationsFromIssues(issues: SourceFileIssue[]): void {
8181
}
8282
}
8383

84-
async function createGitHubApiClient(): Promise<ProviderAPIClient> {
84+
function createGitHubApiClient(): ProviderAPIClient {
8585
const token = process.env.GH_TOKEN;
8686

8787
if (!token) {
@@ -132,7 +132,7 @@ async function run(): Promise<void> {
132132

133133
const gitRefs = parseGitRefs();
134134

135-
const apiClient = await createGitHubApiClient();
135+
const apiClient = createGitHubApiClient();
136136

137137
const result = await runInCI(gitRefs, apiClient, options);
138138

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
{
22
"extends": "../../../tsconfig.base.json",
3-
"compilerOptions": {
4-
"paths": {
5-
"@code-pushup/ci": ["./packages/ci/src/index.ts"],
6-
"@code-pushup/models": ["./packages/models/src/index.ts"],
7-
"@code-pushup/utils": ["./packages/utils/src/index.ts"]
8-
}
9-
},
103
"include": ["src/**/*"]
114
}

0 commit comments

Comments
 (0)