Skip to content

Commit

Permalink
ci: improve CI workflows
Browse files Browse the repository at this point in the history
Signed-off-by: Sefa Eyeoglu <[email protected]>
  • Loading branch information
Scrumplex committed Feb 18, 2025
1 parent be7e979 commit d22a31d
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 33 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# SPDX-FileCopyrightText: 2024 Sefa Eyeoglu <[email protected]>
#
# SPDX-License-Identifier: MIT

name: CI

on: [push, pull_request]

jobs:
format:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Check formatting
run: |
nix fmt -- --ci
check-readme:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Check README contents
run: |
nix run .#update-readme
git diff-index --quiet HEAD -- || git diff && echo "The README is out of date. Please run 'nix run .#update-readme' to update the README." >&2 && exit 1
test:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: REUSE Compliance Check
uses: fsfe/reuse-action@v5
18 changes: 0 additions & 18 deletions .github/workflows/format.yaml

This file was deleted.

15 changes: 0 additions & 15 deletions .github/workflows/reuse.yaml

This file was deleted.

0 comments on commit d22a31d

Please sign in to comment.