Skip to content

Commit d05d98e

Browse files
committed
PoC for logger
1 parent 20e83fc commit d05d98e

File tree

5 files changed

+619
-56
lines changed

5 files changed

+619
-56
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,30 @@
11
name: Continuous Integration
22

3-
on:
4-
pull_request:
5-
branches:
6-
- main
7-
push:
8-
branches:
9-
- main
3+
on: push
104

115
permissions:
126
contents: read
137

148
jobs:
15-
test-typescript:
16-
name: TypeScript Tests
9+
logger:
10+
name: Logger PoC
1711
runs-on: ubuntu-latest
1812

1913
steps:
2014
- name: Checkout
21-
id: checkout
2215
uses: actions/checkout@v4
2316

2417
- name: Setup Node.js
25-
id: setup-node
2618
uses: actions/setup-node@v4
2719
with:
2820
node-version-file: .node-version
2921
cache: npm
3022

3123
- name: Install Dependencies
32-
id: npm-ci
3324
run: npm ci
3425

35-
- name: Check Format
36-
id: npm-format-check
37-
run: npm run format:check
26+
- name: Logger
27+
run: npx tsx usage.ts
3828

39-
- name: Lint
40-
id: npm-lint
41-
run: npm run lint
42-
43-
- name: Test
44-
id: npm-ci-test
45-
run: npm run ci-test
46-
47-
test-action:
48-
name: GitHub Actions Test
49-
runs-on: ubuntu-latest
50-
51-
permissions:
52-
pull-requests: write
53-
54-
steps:
55-
- name: Checkout
56-
id: checkout
57-
uses: actions/checkout@v4
58-
59-
- name: Setup Node.js
60-
id: setup-node
61-
uses: actions/setup-node@v4
62-
with:
63-
node-version-file: .node-version
64-
cache: npm
65-
66-
- name: Install Dependencies
67-
id: npm-ci
68-
run: npm ci
69-
70-
- name: Test Local Action
71-
id: test-action
72-
uses: ./
73-
env:
74-
CP_SERVER: ${{ secrets.CP_SERVER }}
75-
CP_API_KEY: ${{ secrets.CP_API_KEY }}
76-
77-
- name: Print Output
78-
id: output
79-
run: echo "${{ steps.test-action.outputs.comment-id }}"
29+
- name: Logger (verbose)
30+
run: npx tsx usage.ts --verbose

0 commit comments

Comments
 (0)