Skip to content

Commit

Permalink
GitHub Action: improve example
Browse files Browse the repository at this point in the history
  • Loading branch information
Aupajo authored and matt-wratt committed Jun 26, 2024
1 parent 947700d commit 34cb1a3
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions examples/github-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,15 @@ jobs:
test:
runs-on: ubuntu-latest

# Uncomment the lines below if the package.json is located in a subdirectory
#
# defaults:
# run:
# working-directory: ./actions
# assuming your package.json is in the actions directory
defaults:
run:
working-directory: ./actions

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
cache: npm
- run: npm ci
- run: npm test
- run: node --test

0 comments on commit 34cb1a3

Please sign in to comment.