Skip to content

Commit

Permalink
Add typescript-check job in test.yml, include typescript-check in fla…
Browse files Browse the repository at this point in the history
…ke.nix app.
  • Loading branch information
aabccd021 committed Dec 5, 2024
1 parent 722876d commit 265dc99
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:

- run: nix run .#prettier-check

- run: nix run .#typescript-check

- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
7 changes: 7 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,12 @@
'');
};

apps.x86_64-linux.typescript-check = {
type = "app";
program = toString(pkgs.writeShellScript "prettier" ''
${pkgs.typescript}/bin/tsc --noEmit
'');
};

};
}

0 comments on commit 265dc99

Please sign in to comment.