mirror of
https://github.com/github/codeql-action.git
synced 2025-12-06 07:48:17 +08:00
* pre-commit: move the linting check ahead of the compiling one, as a typescript lint can change the compilaed javascript, so you can end up in a situation where the pre-commit check fails twice in a row * just: add linting and make the default to run all
18 lines
364 B
Makefile
18 lines
364 B
Makefile
# Perform all working copy cleanup operations
|
|
all: lint sync
|
|
|
|
# Lint source typescript
|
|
lint:
|
|
npm run lint -- --fix
|
|
|
|
# Sync generated files (javascript and PR checks)
|
|
sync: build update-pr-checks
|
|
|
|
# Perform all necessary steps to update the PR checks
|
|
update-pr-checks:
|
|
pr-checks/sync.sh
|
|
|
|
# Transpile typescript code into javascript
|
|
build:
|
|
npm run build
|