Add a separate rake task and GitHub Action to lint exploit metadata. #1
Workflow file for this run
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: Lint exploits | |
on: | |
push: | |
paths: | |
- exploits/{**/}*.rb | |
- lint/exploits_spec.rb | |
pull_request: | |
paths: | |
- exploits/{**/}*.rb | |
- lint/exploits_spec.rb | |
jobs: | |
# exploits linting | |
exploits: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.0 | |
- name: Install dependencies | |
run: bundle install --jobs 4 --retry 3 | |
- name: Lint exploits | |
run: 'bundle exec rake lint:exploits' |