diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..d588c83 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,45 @@ +name: CI + +on: + push: + branches: + - main + pull_request: + types: [opened, synchronize, reopened] + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + test: + name: Quality Checks + runs-on: ubuntu-latest + timeout-minutes: 15 + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Install pnpm + uses: pnpm/action-setup@v4 + with: + version: 10.8.1 + + - name: Setup Node.js 20.12.0 + uses: actions/setup-node@v4 + with: + node-version: 20.12.0 + cache: 'pnpm' + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Run linting + run: pnpm lint + + - name: Run type checking + run: pnpm typecheck + + - name: Build project + run: pnpm build diff --git a/.node-version b/.node-version index 9d11232..2b9cabc 100644 --- a/.node-version +++ b/.node-version @@ -1 +1 @@ -24.4.1 +20.12.0