Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
actions: Add basic github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
etu committed Jun 7, 2021
1 parent ab09cf7 commit 40ab1ff
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 0 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use nix
28 changes: 28 additions & 0 deletions .github/workflows/codestyle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: Codestyle checks

'on':
pull_request:
branches:
- main

push:
branches:
- main
- nodejs-frontend # TODO: Remove me when web-frontend is merged

jobs:
yamllint:
name: Run yamllint on github actions files
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]

- uses: cachix/install-nix-action@v13
with:
nix_path: nixpkgs=channel:nixos-unstable

- name: Prefetch shell.nix
run: 'nix-shell --run true'

- run: nix-shell --run "make yamllint"
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
yamllint:
yamllint -s -f github .github/workflows/*
11 changes: 11 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{ pkgs ? (import <nixpkgs> {}), ... }:

pkgs.mkShell {
buildInputs = [
# Install GNU Make for shorthands
pkgs.gnumake

# Install yaml lint
pkgs.yamllint
];
}

0 comments on commit 40ab1ff

Please sign in to comment.