Skip to content

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
umgefahren committed Nov 5, 2024
1 parent 7770de6 commit 2663c9a
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: CI

on:
- push
- pull_request

concurrency:
group: ci
cancel-in-progress: true

jobs:
install:
runs-on: ubuntu-latest

steps:
- uses: pnpm/action-setup@v4

- name: Install packages
run: pnpm i

format:
needs: install
runs-on: ubuntu-latest

steps:
- uses: pnpm/action-setup@v4
- name: Install packages
run: pnpm i

- name: Check formatting
run: pnpm format:check

lint:
needs: install
runs-on: ubuntu-latest

steps:
- uses: pnpm/action-setup@v4
- name: Install packages
run: pnpm i

- name: Check linting
run: pnpm lint

- name: TypeScript Check
run: pnpm ts-check
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "libp2p-on-edge",
"packageManager": "pnpm@9",
"version": "0.0.0",
"private": true,
"scripts": {
Expand All @@ -9,6 +10,7 @@
"test": "vitest",
"cf-typegen": "wrangler types",
"format": "prettier --write .",
"format:check": "prettier --check .",
"lint": "eslint .",
"ts-check": "tsc --noEmit"
},
Expand Down

0 comments on commit 2663c9a

Please sign in to comment.