Skip to content

Commit

Permalink
feat: add ci job
Browse files Browse the repository at this point in the history
  • Loading branch information
MejiasDev committed Mar 15, 2024
1 parent f524f4e commit 58f1a2d
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Setup

description: Ponder monorepo action setup

runs:
using: composite
steps:
- name: Set up pnpm
uses: pnpm/action-setup@v2
with:
version: latest

- name: Set up node
uses: actions/setup-node@v3
with:
cache: pnpm
node-version: ${{ matrix.node-version }}

- name: Install dependencies
shell: bash
run: pnpm install --frozen-lockfile
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Continuous Integration

on: [push, pull_request]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [18, 20]
steps:
- name: Clone repository
uses: actions/checkout@v4

- name: Setup
uses: ./.github/actions/setup

- name: Codegen
run: pnpm codegen

- name: Typecheck
run: pnpm typecheck

- name: Lint
run: pnpm lint
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"start": "ponder start",
"codegen": "ponder codegen",
"lint": "eslint .",
"typecheck": "tsc",
"typecheck": "tsc --noEmit",
"docker:build": "docker build -t stratosphere-points-indexer .",
"docker:run": "docker run --env-file .env -p 3000:3000 stratosphere-points-indexer"
},
Expand Down

0 comments on commit 58f1a2d

Please sign in to comment.