Skip to content

Commit

Permalink
chore: try with pre/post functions
Browse files Browse the repository at this point in the history
  • Loading branch information
kamontat committed Jun 10, 2024
1 parent ab2ee21 commit 5d1d31a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions actions/example-ts/src/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ inputs:

runs:
using: node20
pre: pre.js
main: index.js
post: post.js
4 changes: 2 additions & 2 deletions actions/example-ts/src/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { name } from "./next"
import { greeting } from "./next"

describe("hello", () => {
test("naming", () => {
expect(name).toEqual("world")
expect(greeting).toEqual("world")
})
})
1 change: 1 addition & 0 deletions actions/example-ts/src/post.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log("hello post function")
1 change: 1 addition & 0 deletions actions/example-ts/src/pre.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log("hello pre function")

0 comments on commit 5d1d31a

Please sign in to comment.