Skip to content

Commit 7e86656

Browse files
authored
Adding CI (#1)
Signed-off-by: Phil Dibowitz <phil@ipom.com>
1 parent c04ed5b commit 7e86656

File tree

3 files changed

+51
-0
lines changed

3 files changed

+51
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: All checks pass
2+
on:
3+
pull_request:
4+
5+
jobs:
6+
allchecks:
7+
runs-on: ubuntu-latest
8+
permissions:
9+
checks: read
10+
contents: read
11+
steps:
12+
- uses: wechuli/allcheckspassed@v1

.github/workflows/dco.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: DCO Check
2+
on: [pull_request]
3+
4+
jobs:
5+
dco_check_job:
6+
runs-on: ubuntu-latest
7+
name: DCO Check
8+
steps:
9+
- name: Get PR Commits
10+
uses: tim-actions/get-pr-commits@master
11+
id: 'get-pr-commits'
12+
with:
13+
token: ${{ secrets.GITHUB_TOKEN }}
14+
- name: DCO Check
15+
uses: tim-actions/dco@master
16+
with:
17+
commits: ${{ steps.get-pr-commits.outputs.commits }}

.github/workflows/lint.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: lint
2+
on: [push, pull_request]
3+
4+
jobs:
5+
mdl:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v6
9+
- name: Run mdl
10+
uses: actionshub/markdownlint@main
11+
black:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v6
15+
- name: Set up Python
16+
uses: actions/setup-python@v4
17+
with:
18+
python-version: '3.x'
19+
- name: Install black
20+
run: pip install black
21+
- name: Run black
22+
run: black --check -l 80 .

0 commit comments

Comments
 (0)