forked from nvm-sh/nvm
-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[github-action]: migrate bash test/fast to github action from travis
- Loading branch information
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Bash Fast Test Suite | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Environment setup | ||
run: | | ||
sudo apt-get update | ||
sudo sed -i 's/mozilla\/DST_Root_CA_X3.crt/!mozilla\/DST_Root_CA_X3.crt/g' /etc/ca-certificates.conf | ||
sudo update-ca-certificates -f | ||
sudo apt-get update | ||
sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \ | ||
libreadline-dev libsqlite3-dev wget curl llvm \ | ||
libncurses5-dev libncursesw5-dev xz-utils tk-dev \ | ||
libffi-dev liblzma-dev | ||
sudo apt-get install -y zsh | ||
sudo apt-get install -y make | ||
- name: Install python | ||
run: | | ||
curl https://pyenv.run | bash | ||
export PYENV_ROOT="$HOME/.pyenv" | ||
[ -d $PYENV_ROOT/bin ] && export PATH="$PYENV_ROOT/bin:$PATH" | ||
eval "$(pyenv init -)" | ||
eval "$(pyenv virtualenv-init -)" | ||
pyenv install 2.7 | ||
pyenv global 2.7 | ||
- name: Setup nvm | ||
run: | | ||
./install.sh | ||
export NVM_DIR="$HOME/.nvm" | ||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" | ||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" | ||
- name: Run fast test suite | ||
env: | ||
CXX: g++ | ||
CC: gcc | ||
run: | | ||
source $HOME/.nvm/nvm.sh | ||
nvm install 16 && nvm unalias default && npm install && npm prune && npm ls urchin doctoc eclint dockerfile_lint | ||
make TEST_SUITE=fast URCHIN="$(npm bin)/urchin" test-bash |