mirror of
https://github.com/github/codeql-action.git
synced 2025-12-06 07:48:17 +08:00
31 lines
634 B
Makefile
31 lines
634 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
|
|
|
|
# Build then run all the tests
|
|
test: build
|
|
npm run test
|
|
|
|
# Run the tests for a single file
|
|
test_file filename: build
|
|
npx ava --verbose {{filename}}
|
|
|
|
[doc("Refresh the .js build artefacts in the lib directory")]
|
|
[confirm]
|
|
refresh-lib:
|
|
rm -rf lib && npm run build
|