-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Tests] move install script tests to github actions
- Loading branch information
Showing
2 changed files
with
57 additions
and
1 deletion.
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,57 @@ | ||
name: urchin tests | ||
|
||
on: [push] | ||
|
||
jobs: | ||
tests: | ||
permissions: | ||
contents: write | ||
|
||
name: "tests" | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: 'script -q -e -c "${{ matrix.shell }} {0}"' | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- shell: bash | ||
suite: install_script | ||
# shell: | ||
# - bash | ||
# suite: | ||
# - install_script | ||
|
||
steps: | ||
- name: Harden Runner | ||
uses: step-security/harden-runner@v1 | ||
with: | ||
allowed-endpoints: | ||
github.com:443 | ||
registry.npmjs.org:443 | ||
raw.githubusercontent.com:443 | ||
nodejs.org:443 | ||
iojs.org:443 | ||
- uses: actions/checkout@v3 | ||
- run: sudo ${{ matrix.shell }} --version 2> /dev/null || dpkg -s ${{ matrix.shell }} 2> /dev/null || which ${{ matrix.shell }} | ||
- run: curl --version | ||
- run: wget --version | ||
- uses: ljharb/actions/node/run@main | ||
name: 'npm install && version checks' | ||
with: | ||
node-version: 'lts/*' | ||
skip-ls-check: true | ||
shell-command: echo installed | ||
- run: npm ls urchin | ||
- run: npm bin | ||
- run: env | ||
- run: make TERM=xterm-256color TEST_SUITE="${{ matrix.suite }}" SHELL="${{ matrix.shell }}" URCHIN="$(npm bin)/urchin" test-${{ matrix.shell }} | ||
|
||
nvm: | ||
name: 'all test suites, all shells' | ||
needs: [tests] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: 'echo tests completed' |
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