mirror of
https://github.com/coder/coder.git
synced 2026-11-25 23:10:44 +08:00
This implements an initial GitHub Actions workflow for us - to be run on PRs and on `main` commits. This just implements a really simple `style/fmt` check - running `prettier` on the `README.md`. I assumed we'll stick with using a top-level `Makefile` for commands like in `m` and `link` - but open to alternatives, too! Since I was adding a `package.json` and `node_modules` for this, I realized we were missing `.gitignore`s, so I added some a subset of the ignore files from `coder/m`
12 lines
211 B
Makefile
12 lines
211 B
Makefile
fmt/prettier:
|
|
@echo "--- prettier"
|
|
# Avoid writing files in CI to reduce file write activity
|
|
ifdef CI
|
|
yarn run format:check
|
|
else
|
|
yarn run format:write
|
|
endif
|
|
.PHONY: fmt/prettier
|
|
|
|
fmt: fmt/prettier
|
|
.PHONY: fmt |