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 d7e8e80
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 33 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# 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
if ! git diff-index --quiet HEAD --; then
git diff
echo "The README is out of date. Please run 'nix run .#update-readme' to update the README." >&2
exit 1
else
echo "All good!"
fi
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 d7e8e80

Please sign in to comment.