chore(deps): update dev-dependencies #403
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
name: '🏗️ Build and Test' | |
on: # rebuild any PRs and main branch changes | |
pull_request: | |
push: | |
branches: | |
- 'main' | |
- 'releases/*' | |
workflow_dispatch: | |
jobs: | |
build: # make sure build/ci work properly | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Checkout repository' | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: 'Setup Node.js' | |
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 | |
with: | |
node-version: '16.x' | |
cache: 'npm' | |
- name: 'Install dependencies' | |
run: npm install | |
- name: 'Run all NPM targets' | |
run: npm run all | |
testSingleFileTool: # make sure the action works on a clean machine without building | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Checkout repository' | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: 'Execute test run' | |
uses: ./ | |
with: | |
toolName: 'gino-keva' | |
toolRepository: 'philips-software' | |
toolVersion: '2.0.0' | |
urlTemplate: 'https://github.com/{{toolRepository}}/{{toolName}}/releases/download/v{{toolVersion}}/{{toolName}}' | |
smokeTestTemplate: '{{toolName}} --help' | |
testCompressedTool: # make sure the action works on a clean machine without building | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Checkout repository' | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: 'Execute test run' | |
uses: ./ | |
with: | |
toolName: 'trivy' | |
toolRepository: 'aquasecurity' | |
toolVersion: '0.36.0' | |
urlTemplate: 'https://github.com/{{toolRepository}}/{{toolName}}/releases/download/v{{toolVersion}}/{{toolName}}_{{toolVersion}}_{{platform}}-64bit.tar.gz' | |
smokeTestTemplate: '{{toolName}} --help' |