Skip to content

Commit

Permalink
create .github/workflows/check.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanThatOneKid committed Dec 9, 2023
1 parent 9906c90 commit ee18ed3
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Check

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

jobs:
check:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [21.x]

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

- name: Set up SvelteKit on Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Cache Dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-${{ github.event.pull_request.number }}-
- name: Install Dependencies
run: npm ci

- name: Svelte check
run: npm run check

- name: Format
run: npm run format && git diff --exit-code

- name: Lint
run: npm run lint && git diff --exit-code

- name: Build
run: npm run build

0 comments on commit ee18ed3

Please sign in to comment.