forked from dlang/dmd
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 893 Bytes
/
pre_commit.yml
File metadata and controls
33 lines (30 loc) · 893 Bytes
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
name: pre_commit
on:
pull_request:
branches:
- master
- stable
push:
branches:
- master
- stable
workflow_dispatch:
jobs:
pre-commit:
runs-on: ubuntu-latest
env:
SKIP: no-commit-to-branch
steps:
- uses: actions/checkout@v3
- name: Configure Git
run: |
git config --global color.diff.meta "11"
git config --global color.diff.frag "magenta bold"
git config --global color.diff.func "146 bold"
git config --global color.diff.commit "yellow bold"
git config --global color.diff.old "red bold"
git config --global color.diff.new "green bold"
git config --global color.diff.whitespace "red reverse"
git config --global diff.wsErrorHighlight "all"
- uses: actions/setup-python@v3.0.0
- uses: pre-commit/action@v2.0.3