-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
33 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,13 @@ | ||
name: "Nitpick git commits" | ||
|
||
on: [push, pull_request] | ||
|
||
env: | ||
PYTHON_VERSION: 3.6 | ||
on: [push] | ||
|
||
jobs: | ||
nitpick: | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up python ${{ env.PYTHON_VERSION }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run gnitpick | ||
run: python3 gnitpick.py --verbose | ||
uses: Seravo/gnitpick@feature/container |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM ghcr.io/seravo/ubuntu:noble | ||
|
||
ARG APT_PROXY | ||
|
||
RUN sed -i 's/main$/main universe/g' /etc/apt/sources.list && \ | ||
apt-setup && \ | ||
apt-get --assume-yes install \ | ||
python3 && \ | ||
apt-cleanup | ||
|
||
RUN useradd user && \ | ||
mkdir -p /workdir | ||
WORKDIR /workdir | ||
|
||
COPY gnitpick.py /usr/local/bin/ | ||
|
||
USER user | ||
|
||
ENTRYPOINT ["/usr/bin/python3", "/usr/local/bin/gnitpick.py"] | ||
CMD ["--verbose"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
name: 'Lint git commits' | ||
description: 'Run linting for git commits with Gnitpick' | ||
|
||
runs: | ||
using: 'docker' | ||
image: 'Dockerfile' | ||
args: | ||
- '--verbose' |