Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 3 additions & 27 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,6 @@ on:

jobs:
checks:
runs-on: ubuntu-24.04
container:
image: fedora:43 # CURRENT DEVELOPMENT ENVIRONMENT
steps:
- name: Install dependencies for Fedora
run: dnf install -y make yamllint
- uses: actions/checkout@v4
- name: Run yamllint check
run: make yamllint

rust_dependent_checks:
runs-on: ubuntu-latest
container: fedora:43 # CURRENT DEVELOPMENT ENVIRONMENT
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- name: Install dependencies
run: dnf install -y clang curl make
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: cargo
- uses: baptiste0928/cargo-install@v3
with:
crate: typos-cli
- name: Run test
run: make -f Makefile check-typos
uses: $/.github/workflows/reusable_general.yml
with:
fedora-container-image-number: 43 # CURRENT DEVELOPMENT ENVIRONMENT
32 changes: 32 additions & 0 deletions .github/workflows/reusable_general.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: Reusable Checks that are repo-language agnostic

on:
workflow_call:
inputs:
fedora-container-image-number:
description: "Fedora Container Image Number"
required: true
type: number

jobs:
general_checks:
runs-on: ubuntu-latest
container: fedora:${{ inputs.fedora-container-image-number }}
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- name: Install dependencies
run: dnf install -y clang curl make yamllint
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: cargo
toolchain: stable
- uses: baptiste0928/cargo-install@v3
with:
crate: typos-cli
- name: Run typos check
run: make -f Makefile check-typos
- name: Run yamllint check
run: make -f Makefile yamllint