Skip to content

Commit c628adc

Browse files
committed
[Tests] migrate from travis to github actions
not sure what to do about "airtap" yet
1 parent e1d59b1 commit c628adc

File tree

6 files changed

+68
-5
lines changed

6 files changed

+68
-5
lines changed

Diff for: .github/workflows/node-aught.yml

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

Diff for: .github/workflows/node-pretest.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name: 'Tests: pretest/posttest'
2+
3+
on: [pull_request, push]
4+
5+
jobs:
6+
tests:
7+
uses: ljharb/actions/.github/workflows/pretest.yml@main

Diff for: .github/workflows/node-tens.yml

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

Diff for: .github/workflows/rebase.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Automatic Rebase
2+
3+
on: [pull_request_target]
4+
5+
jobs:
6+
_:
7+
name: "Automatic Rebase"
8+
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: ljharb/rebase@master
14+
env:
15+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Diff for: .github/workflows/require-allow-edits.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Require “Allow Edits”
2+
3+
on: [pull_request_target]
4+
5+
jobs:
6+
_:
7+
name: "Require “Allow Edits”"
8+
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: ljharb/require-allow-edits@main

Diff for: .travis.yml

-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
language: node_js
22
node_js:
33
- 'stable'
4-
- '12'
5-
- '10'
6-
- '8'
7-
- '6'
84
script:
9-
- 'npm test'
105
# Run browser tests on one node version.
116
- 'if [ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ "${TRAVIS_NODE_VERSION}" = "stable" ]; then npm run test:browsers; fi'
127
addons:

0 commit comments

Comments
 (0)