-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 876 Bytes
/
ci.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
---
name: Continuous Integration
on :
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
lint:
strategy:
matrix:
os: [ubuntu-latest]
include:
- os: ubuntu-latest
CACHE_PRE_COMMIT: ~/.cache/pre-commit
name: Lint
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Caching
uses: actions/cache@v4
with:
path: |
${{ matrix.CACHE_PRE_COMMIT }}
key: lint-${{ runner.os }}-${{ hashFiles('**/.pre-commit-config.yaml') }}
restore-keys: |
lint-${{ runner.os }}-
- name: Install pre-commit & dependencies
run: |
sudo apt-get install -y pre-commit shellcheck
- name: Lint
run: |
pre-commit run --all-files