-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (42 loc) · 1.05 KB
/
pre-commit.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
47
48
49
50
---
name: pre-commit
on:
pull_request:
push:
branches: [main, master]
permissions:
actions: none
checks: none
contents: read
deployments: none
discussions: none
id-token: none
issues: none
packages: none
pages: none
pull-requests: none
repository-projects: none
security-events: none
statuses: none
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: "stable"
- uses: webfactory/[email protected]
with:
ssh-private-key: "${{ secrets.DEPLOY_USER_SSH_KEY }}"
- run: 'git config --global url."[email protected]:".insteadOf "https://github.com/"'
- name: Load envrc
uses: HatsuneMiku3939/direnv-action@v1
- name: Setup pre-commit
run: python -m pip install pre-commit
- name: Install project dependencies
run: make install
- name: Run pre-commit checks
uses: pre-commit/[email protected]