Skip to content

Commit

Permalink
use new lint workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
gjtorikian committed Nov 26, 2024
1 parent 7f30034 commit 7c1a19e
Showing 1 changed file with 11 additions and 46 deletions.
57 changes: 11 additions & 46 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,51 +1,16 @@
name: Linting
name: Lint

on:
pull_request:
paths:
- "**/*.rb"
- "**/*.rs"

jobs:
rubocop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3
rubygems: latest
bundler-cache: true # 'bundle install' and cache
- name: Rubocop
run: bundle exec rake rubocop

clippy_format:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
submodules: true

- name: Set up Rust
id: toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
env:
RAILS_ENV: test

- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
tmp/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-v1

- name: Check clippy
run: cargo clippy

- name: Check formatting
run: cargo fmt -- --check
jobs:
verify:
uses: yettoapp/actions/.github/workflows/lint.yml@main
secrets:
gh_token: ${{ secrets.GITHUB_TOKEN }}
with:
ruby: true
rust: true

0 comments on commit 7c1a19e

Please sign in to comment.