-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (45 loc) · 1.1 KB
/
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
43
44
45
46
---
name: CI
'on':
push:
branches:
- main
tags:
- '**'
pull_request:
workflow_dispatch:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: setup python 3.x
uses: actions/setup-python@v5
with:
python-version: '3.x'
- uses: actions/cache@v4.0.0
with:
path: ~/.cache/pip
key: "${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}"
restore-keys: ${{ runner.os }}-pip
- name: setup latest node
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- uses: actions/cache@v4.0.0
with:
path: ~/.npm
key: "${{ runner.os }}-npm"
- name: install dependencies
run: |
sudo apt-get install shellcheck
make install
npm install --global markdownlint-cli
- name: lint files
run: make lint
- name: lint commit messages
uses: wagoid/commitlint-github-action@v5.4.5
with:
failOnWarnings: true