generated from memes/repo-template
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.22 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
# These github actions will perform linting using pre-commit.
# yamllint disable rule:line-length
# spell-checker: disable
---
name: pre-commit
# yamllint disable-line rule:truthy
on:
pull_request:
push:
branches-ignore:
- main
permissions:
contents: read
pull-requests: read
jobs:
pre-commit:
runs-on: ubuntu-latest
env:
BUNDLE_WITH: dev
steps:
- uses: actions/checkout@v4
- name: install talisman
run: |
sudo curl -sLo /usr/local/bin/talisman https://github.com/thoughtworks/talisman/releases/download/v1.32.0/talisman_linux_amd64
sudo chmod 0755 /usr/local/bin/talisman
- name: Install terraform-docs
run: |
sudo sh -c 'curl -sL https://github.com/terraform-docs/terraform-docs/releases/download/v0.17.0/terraform-docs-v0.17.0-linux-amd64.tar.gz | tar xzf - -C /usr/local/bin'
sudo chmod 0755 /usr/local/bin/terraform-docs
- name: Install ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3.0'
bundler-cache: true
- name: Install python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Pre-commit
uses: pre-commit/action@v3.0.1