Skip to content
This repository has been archived by the owner on Nov 3, 2024. It is now read-only.

Commit

Permalink
chore: add ci
Browse files Browse the repository at this point in the history
  • Loading branch information
leia-uwu authored Jan 4, 2024
1 parent 5512905 commit 81189a2
Showing 1 changed file with 66 additions and 0 deletions.
66 changes: 66 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: CI

on:
push:
pull_request:

jobs:
server:
name: Server
runs-on: ubuntu-latest
concurrency: ci-server-${{ github.ref }}

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
cache-dependency-path: '**/pnpm-lock.yaml'

- name: Install Packages (Common)
working-directory: ./common
run: pnpm install --frozen-lockfile

- name: Install Packages (Server)
working-directory: ./server
run: pnpm install --frozen-lockfile

- name: Build
working-directory: ./server
run: pnpm build
lint:
name: Lint
runs-on: ubuntu-latest
concurrency: ci-lint-${{ github.ref }}

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
cache-dependency-path: '**/pnpm-lock.yaml'

- name: Install Packages
working-directory: ./tests
run: pnpm install --frozen-lockfile

- name: Lint
run: pnpm lint:ci

0 comments on commit 81189a2

Please sign in to comment.