2020-01-09 21:11:56 +00:00
|
|
|
name: Various Sanity Checks
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Various Sanity Checks
|
2020-09-25 19:47:31 +00:00
|
|
|
runs-on: ubuntu-20.04
|
2020-01-09 21:11:56 +00:00
|
|
|
|
|
|
|
steps:
|
2020-09-25 19:47:31 +00:00
|
|
|
- uses: actions/checkout@v2
|
2020-09-25 19:35:40 +00:00
|
|
|
- name: Set up Node
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: "12"
|
2020-09-25 19:24:56 +00:00
|
|
|
- name: Set up Ruby 2.x
|
2022-02-15 22:26:06 +00:00
|
|
|
uses: ruby/setup-ruby@v1
|
2021-04-30 07:14:33 +00:00
|
|
|
- name: Set up Rust nightly
|
|
|
|
run: |
|
|
|
|
rustup component add clippy
|
2020-09-25 19:35:40 +00:00
|
|
|
- name: Set up Bundler
|
|
|
|
run: |
|
|
|
|
gem install bundler
|
|
|
|
bundle config set without 'uart'
|
|
|
|
bundle install --retry 3
|
|
|
|
- name: Set up Prettier
|
|
|
|
run: |
|
|
|
|
npm install prettier
|
2020-09-25 19:24:56 +00:00
|
|
|
- name: Setup misspell
|
|
|
|
run: |
|
|
|
|
curl -L -o ./install-misspell.sh https://git.io/misspell
|
2021-01-04 16:51:38 +00:00
|
|
|
sh ./install-misspell.sh -b .vendor
|
2020-09-25 19:24:56 +00:00
|
|
|
- name: Run checks
|
|
|
|
run: |
|
|
|
|
BSP=rpi3 bundle exec ruby utils/devtool.rb clippy
|
|
|
|
BSP=rpi4 bundle exec ruby utils/devtool.rb clippy
|
|
|
|
bundle exec ruby utils/devtool.rb copyright
|
|
|
|
bundle exec ruby utils/devtool.rb fmt_check
|
|
|
|
bundle exec ruby utils/devtool.rb misspell
|
|
|
|
bundle exec ruby utils/devtool.rb rubocop
|