Skip to content

Commit 7917574

Browse files
committed
Add GHA workflows
1 parent 5a90a38 commit 7917574

3 files changed

Lines changed: 44 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Publish Package
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
permissions:
9+
id-token: write # Required for OIDC
10+
contents: read
11+
12+
jobs:
13+
publish:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v6
17+
18+
- uses: actions/setup-node@v6
19+
with:
20+
node-version: '24'
21+
registry-url: 'https://registry.npmjs.org'
22+
- run: npm ci
23+
- run: npm publish

.github/workflows/test.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v6
14+
15+
- uses: actions/setup-node@v6
16+
with:
17+
node-version: '24'
18+
registry-url: 'https://registry.npmjs.org'
19+
- run: npm ci
20+
- run: npm test -- --no-watch

src/__tests__/server.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ it("returns an error when exec times out", async () => {
184184
await withServer(
185185
await actionsOidcRouter({
186186
currentDate: new Date(1772542140 * 1000),
187-
...singleTrigger({ commandTimeoutMs: 1, command: 'sleep 10"' }),
187+
...singleTrigger({ commandTimeoutMs: 1, command: "sleep 10" }),
188188
}),
189189
async ({ baseUrl }) => {
190190
const res = await fetch(`${baseUrl}/trigger`, {

0 commit comments

Comments
 (0)