Skip to content

Commit

Permalink
Github: run devenv checks
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianhjr committed Oct 1, 2024
1 parent ae588fb commit 7b7b733
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/devenv.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "Devenv"

on:
push:

jobs:
pre-commit-hooks:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v29
- name: Install devenv.sh
run: nix profile install nixpkgs#devenv
- name: Devenv info (needed until release of next version)
run: devenv info
- name: Pre-commit-hooks (linters / static-analysis)
run: devenv tasks run devenv:pre-commit:install
- name: Pre-commit-hooks (linters / static-analysis)
run: devenv tasks run devenv:pre-commit:run
- name: Test
run: devenv test
1 change: 1 addition & 0 deletions devenv.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

packages = with pkgs; [
assemblyscript
pre-commit
];

pre-commit.hooks = {
Expand Down

0 comments on commit 7b7b733

Please sign in to comment.