Skip to content

Commit

Permalink
smoke/validate-removal
Browse files Browse the repository at this point in the history
  • Loading branch information
thisislawatts committed Jan 6, 2025
1 parent 100c339 commit 35ec148
Show file tree
Hide file tree
Showing 14 changed files with 2 additions and 834 deletions.
46 changes: 2 additions & 44 deletions .github/workflows/smoke-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,19 +131,7 @@ jobs:
echo $env:PATH
sh ./test/smoke/install-snyk-binary-win.sh
- name: Install Shellspec - non-windows
if: ${{ matrix.os != 'windows' && matrix.snyk_install_method != 'alpine-binary' }}
run: |
./test/smoke/install-shellspec.sh --yes
sudo ln -s ${HOME}/.local/lib/shellspec/shellspec /usr/local/bin/shellspec
ls -la ${HOME}/.local/lib/shellspec
echo "shellspec symlink:"
ls -la /usr/local/bin/shellspec
/usr/local/bin/shellspec --version
which shellspec
shellspec --version
- name: Install test utilities with homebrew on macOS
- name: Install test utilities with homebrew on macOS
if: ${{ matrix.os == 'macos' }}
# We need "timeout" and "jq" util and we'll use brew to check our brew package as well
run: |
Expand All @@ -166,34 +154,4 @@ jobs:
- name: Install jq on Ubuntu
if: ${{ matrix.os == 'ubuntu' && matrix.snyk_install_method != 'alpine-binary' && matrix.snyk_install_method != 'npm-root-user' }}
run: |
sudo apt-get install jq
- name: Install Shellspec - Windows
shell: powershell
if: ${{ matrix.os == 'windows' }}
run: |
Get-Host | Select-Object Version
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
sh ./test/smoke/install-shellspec.sh --yes
- name: Run shellspec tests - non-Windows
if: ${{ matrix.os != 'windows' && matrix.snyk_install_method != 'alpine-binary' && matrix.snyk_install_method != 'npm-root-user' }}
working-directory: test/smoke
shell: bash -l {0} # run bash with --login flag to load .bash_profile that's used by yarn install method
env:
TEST_SNYK_TOKEN: ${{ secrets.TEST_SNYK_TOKEN }}
TEST_SNYK_API: ${{ secrets.TEST_SNYK_API }}
run: |
which snyk
snyk version
shellspec -f d --skip-message quiet --no-warning-as-failure
- name: Run shellspec tests - Windows
if: ${{ matrix.os == 'windows' }}
working-directory: test/smoke
shell: powershell
env:
TEST_SNYK_TOKEN: ${{ secrets.TEST_SNYK_TOKEN }}
TEST_SNYK_API: ${{ secrets.TEST_SNYK_API }}
run: |
sh ./run-shellspec-win.sh
sudo apt-get install jq
1 change: 0 additions & 1 deletion test/smoke/.shellspec

This file was deleted.

7 changes: 0 additions & 7 deletions test/smoke/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,6 @@ To run these tests locally you may use `npm run test:smoke`:

1. Install:

- [Shellspec](https://shellspec.info) reccomended installation is through brew:

- ### Install the latest stable version of shell spec
- brew tap shellspec/shellspec
- brew install shellspec

- [jq](https://stedolan.github.io/jq/)
- timeout (if not available on your platform)

2. Install dependencies for the local fixture `test/fixtures/basic-npm` with `npm install --prefix test/fixtures/basic-npm`
Expand Down
301 changes: 0 additions & 301 deletions test/smoke/install-shellspec.sh

This file was deleted.

5 changes: 0 additions & 5 deletions test/smoke/install-snyk-binary-win.sh

This file was deleted.

3 changes: 0 additions & 3 deletions test/smoke/run-shellspec-win.sh

This file was deleted.

Loading

0 comments on commit 35ec148

Please sign in to comment.