- a ci workflow for build tests - run pre-commit against all files Reviewed-on: #342
25 lines
552 B
YAML
25 lines
552 B
YAML
name: Build
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
jobs:
|
|
precommit:
|
|
runs-on: almalinux-8
|
|
container:
|
|
image: git.unkin.net/unkin/almalinux9-actionsdind:latest
|
|
options: --privileged
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Install requirements
|
|
run: |
|
|
dnf groupinstall -y "Development Tools" -y
|
|
dnf install rubygems ruby-devel gcc make redhat-rpm-config glibc-headers glibc-devel -y
|
|
|
|
- name: Pre-Commit All Files
|
|
run: |
|
|
uvx pre-commit run --all-files
|