Skip to content

Commit 80a4e06

Browse files
committed
[Tests] partially migrate to Github Actions
1 parent 22902f0 commit 80a4e06

File tree

5 files changed

+92
-23
lines changed

5 files changed

+92
-23
lines changed

.github/workflows/latest-npm.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: 'Tests: `nvm install-latest-npm`'
2+
3+
on: [pull_request, push]
4+
5+
jobs:
6+
nodes:
7+
name: 'nvm install-latest-npm'
8+
runs-on: ubuntu-latest
9+
10+
strategy:
11+
matrix:
12+
node-version:
13+
- "11"
14+
- "10"
15+
- "9"
16+
- "9.2"
17+
- "9.1"
18+
- "9.0"
19+
- "8"
20+
- "7"
21+
- "6"
22+
- "6.1"
23+
- "5"
24+
- "5.9"
25+
- "4"
26+
- "4.6"
27+
- "4.5"
28+
- "4.4"
29+
- "3"
30+
- "2"
31+
- "1"
32+
- "0.12"
33+
- "0.10"
34+
35+
steps:
36+
- uses: actions/checkout@v2
37+
- uses: ljharb/actions/node/run@main
38+
name: 'nvm install-latest-npm'
39+
with:
40+
node-version: ${{ matrix.node-version }}
41+
skip-ls-check: true
42+
skip-install: true
43+
shell-command: 'npm --version'
44+
45+
node:
46+
name: 'nvm install-latest-npm'
47+
needs: [nodes]
48+
runs-on: ubuntu-latest
49+
steps:
50+
- run: 'echo tests completed'

.github/workflows/lint.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: 'Tests: linting'
2+
3+
on: [pull_request, push]
4+
5+
jobs:
6+
eclint:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: ljharb/actions/node/run@main
11+
name: 'npm install && npm run eclint'
12+
with:
13+
node-version: 'lts/*'
14+
command: 'eclint'
15+
16+
dockerfile_lint:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v2
20+
- uses: ljharb/actions/node/run@main
21+
name: 'npm install && npm run dockerfile_lint'
22+
with:
23+
node-version: 'lts/*'
24+
command: 'dockerfile_lint'
25+
26+
doctoc:
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v2
30+
- uses: ljharb/actions/node/run@main
31+
name: 'npm install && npm run dockerfile_lint'
32+
with:
33+
node-version: 'lts/*'
34+
shell-command: |
35+
set -e
36+
cp README.md README.md.orig
37+
npm run doctoc
38+
diff -q README.md README.md.orig

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Tests: release process"
1+
name: 'Tests: release process'
22

33
on: [pull_request, push]
44

.github/workflows/shellcheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Tests: shellcheck"
1+
name: 'Tests: shellcheck'
22

33
on: [pull_request, push]
44

.travis.yml

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,9 @@ install:
2222
- if [ -z "${SHELLCHECK-}" ]; then nvm install node && npm install && npm prune && npm ls urchin doctoc eclint dockerfile_lint; fi
2323
- '[ -z "$WITHOUT_CURL" ] || sudo apt-get remove curl -y'
2424
script:
25-
- if [ -n "${DOCTOCCHECK-}" ]; then cp README.md README.md.orig && npm run doctoc && diff -q README.md README.md.orig ; fi
26-
- if [ -n "${ECLINT-}" ]; then npm run eclint ; fi
27-
- if [ -n "${DOCKERFILE_LINT-}" ]; then npm run dockerfile_lint ; fi
2825
- if [ -n "${SHELL-}" ] && [ -n "${TEST_SUITE}" ]; then if [ "${TEST_SUITE}" = 'installation_iojs' ]; then travis_retry make TEST_SUITE=$TEST_SUITE URCHIN="$(npm bin)/urchin" test-$SHELL ; else make TEST_SUITE=$TEST_SUITE URCHIN="$(npm bin)/urchin" test-$SHELL; fi; fi
2926
before_cache:
3027
- if [ -n "$WITHOUT_CURL" ]; then sudo apt-get install curl -y ; fi
31-
- if [ -n "${NODE-}" ]; then . nvm.sh && set -ex && nvm install --latest-npm "${NODE}" && npm --version; fi
3228
env:
3329
global:
3430
- CXX=g++
@@ -37,9 +33,6 @@ env:
3733
- PATH="/usr/lib/ccache/:$PATH"
3834
- NVM_DIR="${TRAVIS_BUILD_DIR}"
3935
matrix:
40-
- DOCTOCCHECK=true
41-
- ECLINT=true
42-
- DOCKERFILE_LINT=true
4336
- SHELL=bash TEST_SUITE=install_script
4437
- SHELL=sh TEST_SUITE=fast
4538
- SHELL=dash TEST_SUITE=fast
@@ -74,17 +67,5 @@ env:
7467
- SHELL=bash TEST_SUITE=installation_iojs WITHOUT_CURL=1
7568
- SHELL=zsh TEST_SUITE=installation_iojs
7669
- SHELL=zsh TEST_SUITE=installation_iojs WITHOUT_CURL=1
77-
# - SHELL=ksh TEST_SUITE=installation_iojs
78-
# - SHELL=ksh TEST_SUITE=installation_iojs WITHOUT_CURL=1
79-
- NODE=10 TEST="nvm install-latest-npm"
80-
- NODE=9 TEST="nvm install-latest-npm"
81-
- NODE=8 TEST="nvm install-latest-npm"
82-
- NODE=7 TEST="nvm install-latest-npm"
83-
- NODE=6 TEST="nvm install-latest-npm"
84-
- NODE=5 TEST="nvm install-latest-npm"
85-
- NODE=5.9 TEST="nvm install-latest-npm"
86-
- NODE=4 TEST="nvm install-latest-npm"
87-
- NODE=4.6 TEST="nvm install-latest-npm"
88-
- NODE=4.5 TEST="nvm install-latest-npm"
89-
- NODE=4.4 TEST="nvm install-latest-npm"
90-
- NODE=2 TEST="nvm install-latest-npm"
70+
# - SHELL=ksh TEST_SUITE=installation_iojs
71+
# - SHELL=ksh TEST_SUITE=installation_iojs WITHOUT_CURL=1

0 commit comments

Comments
 (0)