Skip to content

Commit

Permalink
Merge pull request #3 from dmugtasimov/feature/github-actions
Browse files Browse the repository at this point in the history
GitHub actions
  • Loading branch information
dmugtasimov authored Sep 8, 2024
2 parents e060df1 + 7239aaa commit 60bf544
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 5 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/quality-assurance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Quality Assurance

on:
push:
branches:
- main
pull_request:

jobs:
quality-assurance:
name: Quality Assurance

runs-on: ubuntu-22.04
container: texlive/texlive:latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Disable Git's dubious ownership check
run: git config --global safe.directory '*'

# TODO(dmu) LOW: Implement caching
- name: Install dependencies
run: |
apt update
apt install -y make sudo git pre-commit
make install-pandoc-m4
make setup-pre-commit
- name: Run lint
run: make lint
19 changes: 14 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,25 @@ src/telegram-logo.svg: ;
src/pandoc.yaml: ;
src/pandoc_postprocessor.py: ;

.PHONY: install-prerequisites
install-prerequisites:
sudo apt install texlive texlive-latex-extra pandoc
.PHONY: install-texlive
install-texlive:
sudo apt install -y texlive texlive-latex-extra

.PHONY: install-pandoc-m4
install-pandoc-m4:
sudo apt install -y pandoc m4

.PHONY: install-pre-commit
install-pre-commit:
pip install pre-commit; pre-commit uninstall; pre-commit install
pip install pre-commit

.PHONY: setup-pre-commit
setup-pre-commit:
pre-commit uninstall
pre-commit install

.PHONY: install
install: install-prerequisites install-pre-commit ;
install: install-texlive install-pandoc-m4 install-pre-commit setup-pre-commit ;

.PHONY: generate-pdf
generate-pdf: generated/dmugtasimov-resume.pdf
Expand Down

0 comments on commit 60bf544

Please sign in to comment.