Skip to content

Commit

Permalink
Add github workflow to run overcommit
Browse files Browse the repository at this point in the history
  • Loading branch information
zakariaf committed Apr 13, 2022
1 parent e270bc9 commit 2a3a730
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Lint
on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
overcommit:
timeout-minutes: 10
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0
bundler-cache: true

- name: Prepare environment
run: |
git config --global user.email "gh-actions@example.com"
git config --global user.name "GitHub Actions"
bundle exec overcommit --sign
bundle exec overcommit --sign pre-commit
- name: Run pre-commit checks
run: bundle exec overcommit --run

0 comments on commit 2a3a730

Please sign in to comment.