Skip to content

Commit 101562c

Browse files
committed
chore(ci): set up basic checks on push and PRs
1 parent 3009efd commit 101562c

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# yaml-language-server: $schema=https://www.schemastore.org/github-workflow.json
2+
3+
name: CI
4+
5+
on:
6+
push:
7+
branches: [ main ]
8+
pull_request:
9+
branches: [ "**" ]
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
pre-commit:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
20+
with:
21+
fetch-depth: 0
22+
23+
- name: Setup Python
24+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
25+
26+
- name: pre-commit
27+
uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
28+
with:
29+
extra_args: --all --show-diff-on-failure --color=always
30+
31+
build:
32+
runs-on: ubuntu-latest
33+
steps:
34+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
35+
- name: Build the Docker image
36+
run: docker build . --file Dockerfile

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ deploy:
66
@flyctl deploy
77
.PHONY: deploy
88

9+
lint:
10+
pre-commit run --all
11+
.PHONY: lint
12+
913
ssh:
1014
@flyctl ssh console
1115
.PHONY: ssh

0 commit comments

Comments
 (0)