Skip to content

Commit

Permalink
[actions] reuse common workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Oct 9, 2021
1 parent 0f726b6 commit 0b92007
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 207 deletions.
60 changes: 0 additions & 60 deletions .github/workflows/node-4+.yml

This file was deleted.

19 changes: 19 additions & 0 deletions .github/workflows/node-aught.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: 'Tests: node.js < 10'

on: [pull_request, push]

jobs:
tests:
name: 'node < 10'
uses: ljharb/actions/.github/workflows/node.yml@main
with:
range: '< 10'
type: minors
command: npm run tests-only

node:
- name: 'node < 10'
needs: [tests]
runs-on: ubuntu-latest
steps:
- run: 'echo tests completed'
62 changes: 0 additions & 62 deletions .github/workflows/node-iojs.yml

This file was deleted.

23 changes: 2 additions & 21 deletions .github/workflows/node-pretest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,5 @@ name: 'Tests: pretest/posttest'
on: [pull_request, push]

jobs:
pretest:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: ljharb/actions/node/install@main
name: 'nvm install lts/* && npm install'
with:
node-version: 'lts/*'
- run: npm run pretest

posttest:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: ljharb/actions/node/install@main
name: 'nvm install lts/* && npm install'
with:
node-version: 'lts/*'
- run: npm run posttest
tests:
uses: ljharb/actions/.github/workflows/pretest.yml@main
19 changes: 19 additions & 0 deletions .github/workflows/node-tens.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: 'Tests: node.js >= 10'

on: [pull_request, push]

jobs:
tests:
name: 'node >= 10'
uses: ljharb/actions/.github/workflows/node.yml@main
with:
range: '>= 10'
type: minors
command: npm run tests-only

node:
- name: 'node >= 10'
needs: [tests]
runs-on: ubuntu-latest
steps:
- run: 'echo tests completed'
64 changes: 0 additions & 64 deletions .github/workflows/node-zero.yml

This file was deleted.

0 comments on commit 0b92007

Please sign in to comment.