diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 0000000..6d2b064 --- /dev/null +++ b/.github/workflows/check.yml @@ -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 diff --git a/.prettierrc.js b/.prettierrc.js index c849b18..149ffef 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -6,7 +6,7 @@ const config = { tabWidth: 2, semi: true, singleQuote: false, - endOfLine: "auto", + endOfLine: "lf", printWidth: 80, plugins: [ "prettier-plugin-astro",