mirror of
https://github.com/actions/javascript-action.git
synced 2025-12-11 13:20:32 +00:00
Merge pull request #13 from actions/twojobs
split into two jobs for better testing
This commit is contained in:
14
.github/workflows/test.yml
vendored
14
.github/workflows/test.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: "test-local"
|
name: "units-test"
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
push:
|
push:
|
||||||
@@ -7,13 +7,19 @@ on:
|
|||||||
- 'releases/*'
|
- 'releases/*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
# unit tests
|
||||||
|
units:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- run: npm ci
|
||||||
|
- run: npm test
|
||||||
|
|
||||||
|
# test action works running from the graph
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
|
|
||||||
- run: npm ci
|
|
||||||
- run: npm test
|
|
||||||
- uses: ./
|
- uses: ./
|
||||||
with:
|
with:
|
||||||
milliseconds: 1000
|
milliseconds: 1000
|
||||||
|
|||||||
Reference in New Issue
Block a user