Skip to content

Commit

Permalink
Add pre-commit.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Izzette committed Sep 12, 2023
1 parent 9d28e4e commit ce3ea46
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: pre-commit

on:
pull_request:
push:
branches: [master]

jobs:
pre-commit:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: actions/[email protected]
with:
python-version: '3.x'

- uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
check-latest: true
cache: true

- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y libdevmapper-dev libbtrfs-dev

- uses: pre-commit/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit ce3ea46

Please sign in to comment.