Skip to content

Commit

Permalink
ci: add node check action
Browse files Browse the repository at this point in the history
  • Loading branch information
oplik0 committed Oct 14, 2023
1 parent 1a9ad3a commit c41d604
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 1 deletion.
50 changes: 50 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Check and lint code

on:
push:
branches: [ "alpha", "main" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "alpha", "main" ]

jobs:
svelte-check:
name: Run svelte-check
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
steps:
- name: Checkout code
uses: actions/checkout@v4

- uses: pnpm/action-setup@v2
with:
version: 8
- name: setup node
uses: actions/setup-node@v3
with:
node-version: lts/*
cache: pnpm
- name: check
run: pnpm run check
lint:
name: Lint code
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
steps:
- name: Checkout code
uses: actions/checkout@v4

- uses: pnpm/action-setup@v2
with:
version: 8
- name: setup node
uses: actions/setup-node@v3
with:
node-version: lts/*
cache: pnpm
- name: check
run: pnpm run lint
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"check": "svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "eslint .",
"semantic-release": "semantic-release",
"prepare": "husky install"
},
"devDependencies": {
Expand Down

0 comments on commit c41d604

Please sign in to comment.