diff --git a/.github/workflows/devenv.yaml b/.github/workflows/devenv.yaml new file mode 100644 index 0000000..40e86ff --- /dev/null +++ b/.github/workflows/devenv.yaml @@ -0,0 +1,20 @@ +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:run + - name: Test + run: devenv test diff --git a/devenv.nix b/devenv.nix index 56f315c..aa09a69 100644 --- a/devenv.nix +++ b/devenv.nix @@ -27,6 +27,7 @@ packages = with pkgs; [ assemblyscript + pre-commit ]; pre-commit.hooks = {