Skip to content

Commit

Permalink
ci: add checks
Browse files Browse the repository at this point in the history
  • Loading branch information
leomotors committed Dec 25, 2023
1 parent 243b03c commit f321178
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Check

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
check:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v2

- name: Setup node with cache
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: pnpm

- name: Install Dependencies
run: pnpm install --frozen-lockfile

- name: Build everything
run: pnpm build

- name: Lint
run: pnpm lint
2 changes: 1 addition & 1 deletion .prettierrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const config = {
tabWidth: 2,
semi: true,
singleQuote: false,
endOfLine: "auto",
endOfLine: "lf",
printWidth: 80,
plugins: [
"prettier-plugin-astro",
Expand Down

0 comments on commit f321178

Please sign in to comment.