Skip to content

Commit 8f3d1e9

Browse files
authored
Merge pull request #1 from guix77/master
additional doc
2 parents 97fd713 + 23e052c commit 8f3d1e9

File tree

1 file changed

+10
-22
lines changed

1 file changed

+10
-22
lines changed

README.md

+10-22
Original file line numberDiff line numberDiff line change
@@ -10,31 +10,19 @@ More info [on the Jest getting started guide](https://jestjs.io/docs/en/getting-
1010

1111
## Usage
1212

13-
Add any of the examples below to your workflow file in `.github/main.workflow`
13+
With the latest version of GitHub actions, create a `.github/workflow/test.yml` file:
1414

15-
This is the simplest example to get it running:
16-
```
17-
workflow "New workflow" {
18-
on = "push"
19-
resolves = ["Jest"]
20-
}
21-
22-
action "Jest" {
23-
uses = "stefanoeb/jest-action@master"
24-
}
2515
```
16+
name: Test
2617
27-
By default it will run Jest on all the test files in the project. But you can also specify a glob of files on the `args`, just like on the Jest CLI, as well as options:
28-
```
29-
workflow "New workflow" {
30-
on = "push"
31-
resolves = ["Jest"]
32-
}
33-
34-
action "Jest" {
35-
uses = "stefanoeb/jest-action@master"
36-
args = "**.test.js --ci"
37-
}
18+
on: [push]
19+
20+
jobs:
21+
test:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v1
25+
- uses: stefanoeb/jest-action@master
3826
```
3927

4028
If there is no previous step installing the necessary modules, this action will execute a `yarn install` or `npm install` automatically.

0 commit comments

Comments
 (0)