Sample input timing code #172
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: Style | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Ruby 3.1 | |
uses: actions/setup-ruby@v1 | |
with: | |
ruby-version: 3.1.x | |
- name: Prepare | |
run: | | |
sudo apt-get update | |
sudo apt-get install shellcheck | |
gem install bundler | |
gem install rubocop:1.31.2 | |
bundle install --jobs 4 --retry 3 | |
- name: Check ruby with rubocop | |
run: | | |
rubocop | |
- name: Shellcheck | |
run: find . -type f -name '*.sh' -print0 | xargs -0 shellcheck |