Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,26 @@ jobs:
with:
path: astro

astro-check:
runs-on: ubuntu-latest
permissions:
contents: read
defaults:
run:
working-directory: astro
steps:
- name: Checkout your repository using git
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
cache-dependency-path: astro/package-lock.json
- run: npm ci
- run: npm run astro:check
continue-on-error: true # TODO: Remove when check is cleaned up.

deploy:
needs: build
runs-on: ubuntu-latest
Expand Down
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ shell: up

dist: clean-js-dist $(SOURCE_DIR)/dist

check: up $(SOURCE_DIR)/node_modules
@docker compose exec $(CONTAINER) sh -c "npm run astro:check"

prettier: up
@echo Verifying code formatting.
@docker compose exec $(CONTAINER) sh -c "npx prettier ./src --write"
Expand All @@ -39,11 +42,11 @@ ifndef number
endif
docker compose exec $(CONTAINER) sh -c "npm version ${number}"

upgrade-astro: up
upgrade-astro: up $(SOURCE_DIR)/node_modules
@echo Updating Astro specific dependencies.
@docker compose exec ${CONTAINER} sh -c "npx @astrojs/upgrade"

update-dependencies: up
update-dependencies: up $(SOURCE_DIR)/node_modules
@echo Updating package.json.
@docker compose exec ${CONTAINER} sh -c "npx npm-check-updates -u"

Expand Down
1 change: 1 addition & 0 deletions astro/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ All commands are run from the root of the project, from a terminal:
| `npm run preview` | Preview your build locally, before deploying |
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
| `npm run astro -- --help` | Get help using the Astro CLI |
| `npm run astro:check` | Run astro checks. See [astro documentation](https://docs.astro.build/en/guides/typescript/#type-checking)|

## 👀 Want to learn more?

Expand Down
Loading
Loading