Skip to content

ci: add checks to actions and husky pre-commit #80

ci: add checks to actions and husky pre-commit

ci: add checks to actions and husky pre-commit #80

Workflow file for this run

name: ci
on:
pull_request:
types: [opened, reopened, synchronize, edited]
workflow_call:
workflow_dispatch:
jobs:
checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: false
- name: Setup node
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Astro check
run: pnpm astro check
- name: Prettier check
run: pnpm exec prettier --check .
build-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build image for amd64 and arm64
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64
cache-from: type=gha
cache-to: type=gha,mode=max