-
-
Notifications
You must be signed in to change notification settings - Fork 820
46 lines (43 loc) · 1.51 KB
/
sanity.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Various Sanity Checks
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
name: Various Sanity Checks
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: "16"
- name: Set up Ruby
uses: ruby/setup-ruby@v1
- name: Set up Rust nightly
run: |
rustup component add clippy
- 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
- name: Setup misspell
run: |
curl -L -o ./install-misspell.sh https://raw.githubusercontent.com/client9/misspell/master/install-misspell.sh
sh ./install-misspell.sh -b .vendor
- 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