Skip to content

Commit 22902f0

Browse files
reasonablytallljharb
authored andcommitted
[actions] Add release test workflow
1 parent 6848c16 commit 22902f0

File tree

2 files changed

+31
-9
lines changed

2 files changed

+31
-9
lines changed

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: "Tests: release process"
2+
3+
on: [pull_request, push]
4+
5+
jobs:
6+
release:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: actions/setup-node@v2-beta
11+
with:
12+
node-version: "14"
13+
- run: npm install
14+
- name: Configure git
15+
run: |
16+
git config user.name github-actions
17+
git config user.email [email protected]
18+
git fetch --unshallow --tags || git fetch --tags
19+
- name: Attempt `make release` process
20+
run: echo proceed | make TAG=99.99.99 release
21+
env:
22+
GIT_EDITOR: "sed -i '1 s/^/99.99.99 make release test/'"
23+
- name: Ensure tag is created
24+
run: git tag | grep v99.99.99

.travis.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ 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 "${MAKE_RELEASE-}" ]; then export GIT_EDITOR="sed -i '1 s/^/99.99.99 make release test/'" && git fetch --unshallow --tags && echo proceed | make TAG=99.99.99 release ; fi
2625
- if [ -n "${DOCTOCCHECK-}" ]; then cp README.md README.md.orig && npm run doctoc && diff -q README.md README.md.orig ; fi
2726
- if [ -n "${ECLINT-}" ]; then npm run eclint ; fi
2827
- if [ -n "${DOCKERFILE_LINT-}" ]; then npm run dockerfile_lint ; fi
@@ -38,7 +37,6 @@ env:
3837
- PATH="/usr/lib/ccache/:$PATH"
3938
- NVM_DIR="${TRAVIS_BUILD_DIR}"
4039
matrix:
41-
- MAKE_RELEASE=true
4240
- DOCTOCCHECK=true
4341
- ECLINT=true
4442
- DOCKERFILE_LINT=true
@@ -47,17 +45,17 @@ env:
4745
- SHELL=dash TEST_SUITE=fast
4846
- SHELL=bash TEST_SUITE=fast
4947
- SHELL=zsh TEST_SUITE=fast
50-
# - SHELL=ksh TEST_SUITE=fast
48+
# - SHELL=ksh TEST_SUITE=fast
5149
- SHELL=sh TEST_SUITE=sourcing
5250
- SHELL=dash TEST_SUITE=sourcing
5351
- SHELL=bash TEST_SUITE=sourcing
5452
- SHELL=zsh TEST_SUITE=sourcing
55-
# - SHELL=ksh TEST_SUITE=sourcing
53+
# - SHELL=ksh TEST_SUITE=sourcing
5654
- SHELL=sh TEST_SUITE=slow
5755
- SHELL=dash TEST_SUITE=slow
5856
- SHELL=bash TEST_SUITE=slow
5957
- SHELL=zsh TEST_SUITE=slow
60-
# - SHELL=ksh TEST_SUITE=slow
58+
# - SHELL=ksh TEST_SUITE=slow
6159
- SHELL=sh TEST_SUITE=installation_node
6260
- SHELL=sh TEST_SUITE=installation_node WITHOUT_CURL=1
6361
- SHELL=dash TEST_SUITE=installation_node
@@ -66,8 +64,8 @@ env:
6664
- SHELL=bash TEST_SUITE=installation_node WITHOUT_CURL=1
6765
- SHELL=zsh TEST_SUITE=installation_node
6866
- SHELL=zsh TEST_SUITE=installation_node WITHOUT_CURL=1
69-
# - SHELL=ksh TEST_SUITE=installation_node
70-
# - SHELL=ksh TEST_SUITE=installation_node WITHOUT_CURL=1
67+
# - SHELL=ksh TEST_SUITE=installation_node
68+
# - SHELL=ksh TEST_SUITE=installation_node WITHOUT_CURL=1
7169
- SHELL=sh TEST_SUITE=installation_iojs
7270
- SHELL=sh TEST_SUITE=installation_iojs WITHOUT_CURL=1
7371
- SHELL=dash TEST_SUITE=installation_iojs
@@ -76,8 +74,8 @@ env:
7674
- SHELL=bash TEST_SUITE=installation_iojs WITHOUT_CURL=1
7775
- SHELL=zsh TEST_SUITE=installation_iojs
7876
- SHELL=zsh TEST_SUITE=installation_iojs WITHOUT_CURL=1
79-
# - SHELL=ksh TEST_SUITE=installation_iojs
80-
# - SHELL=ksh TEST_SUITE=installation_iojs WITHOUT_CURL=1
77+
# - SHELL=ksh TEST_SUITE=installation_iojs
78+
# - SHELL=ksh TEST_SUITE=installation_iojs WITHOUT_CURL=1
8179
- NODE=10 TEST="nvm install-latest-npm"
8280
- NODE=9 TEST="nvm install-latest-npm"
8381
- NODE=8 TEST="nvm install-latest-npm"

0 commit comments

Comments
 (0)