Skip to content

Commit a5b2949

Browse files
committed
[actions] reuse common workflows
See inspect-js/is-arguments#38
1 parent 2afaed7 commit a5b2949

8 files changed

+43
-212
lines changed

.github/workflows/node-4+.yml

-60
This file was deleted.

.github/workflows/node-aught.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: 'Tests: node.js < 10'
2+
3+
on: [pull_request, push]
4+
5+
jobs:
6+
tests:
7+
uses: ljharb/actions/.github/workflows/node.yml@main
8+
with:
9+
range: '< 10'
10+
type: minors
11+
command: npm run tests-only
12+
13+
node:
14+
name: 'node < 10'
15+
needs: [tests]
16+
runs-on: ubuntu-latest
17+
steps:
18+
- run: 'echo tests completed'

.github/workflows/node-iojs.yml

-62
This file was deleted.

.github/workflows/node-pretest.yml

+2-21
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,5 @@ name: 'Tests: pretest/posttest'
33
on: [pull_request, push]
44

55
jobs:
6-
pretest:
7-
runs-on: ubuntu-latest
8-
9-
steps:
10-
- uses: actions/checkout@v2
11-
- uses: ljharb/actions/node/install@main
12-
name: 'nvm install lts/* && npm install'
13-
with:
14-
node-version: 'lts/*'
15-
- run: npm run pretest
16-
17-
posttest:
18-
runs-on: ubuntu-latest
19-
20-
steps:
21-
- uses: actions/checkout@v2
22-
- uses: ljharb/actions/node/install@main
23-
name: 'nvm install lts/* && npm install'
24-
with:
25-
node-version: 'lts/*'
26-
- run: npm run posttest
6+
tests:
7+
uses: ljharb/actions/.github/workflows/pretest.yml@main

.github/workflows/node-tens.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: 'Tests: node.js >= 10'
2+
3+
on: [pull_request, push]
4+
5+
jobs:
6+
tests:
7+
uses: ljharb/actions/.github/workflows/node.yml@main
8+
with:
9+
range: '>= 10'
10+
type: minors
11+
command: npm run tests-only
12+
13+
node:
14+
name: 'node >= 10'
15+
needs: [tests]
16+
runs-on: ubuntu-latest
17+
steps:
18+
- run: 'echo tests completed'

.github/workflows/node-zero.yml

-64
This file was deleted.

.github/workflows/rebase.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- uses: actions/checkout@v2
13-
- uses: ljharb/rebase@master
14-
env:
15-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12+
- uses: actions/checkout@v2
13+
- uses: ljharb/rebase@master
14+
env:
15+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/require-allow-edits.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- uses: ljharb/require-allow-edits@main
12+
- uses: ljharb/require-allow-edits@main

0 commit comments

Comments
 (0)