Skip to content

Commit

Permalink
test: use act to test github actions locally
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4007 committed Feb 19, 2024
1 parent 47569af commit 2b7b9fb
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Test My Custom Action
on: [push]

jobs:
test-action:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Run my custom action
uses: ./ # Points to the project root where action.yml is located
1 change: 1 addition & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ runs:

- name: Install Dependencies
run: |
npm install yarn -g
yarn install
yarn add wrangler tsx
shell: bash
Expand Down
10 changes: 10 additions & 0 deletions test/payload.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"ref": "refs/heads/main",
"after": "dummysha",
"repository": {
"name": "ts-template",
"owner": {
"name": "ubiquity"
}
}
}

0 comments on commit 2b7b9fb

Please sign in to comment.