diff options
| author | MohamedBassem <me@mbassem.com> | 2024-03-13 21:43:44 +0000 |
|---|---|---|
| committer | Mohamed Bassem <me@mbassem.com> | 2024-03-14 16:40:45 +0000 |
| commit | 04572a8e5081b1e4871e273cde9dbaaa44c52fe0 (patch) | |
| tree | 8e993acb732a50d1306d4d6953df96c165c57f57 /.github/workflows | |
| parent | 2df08ed08c065e8b91bc8df0266bd4bcbb062be4 (diff) | |
| download | karakeep-04572a8e5081b1e4871e273cde9dbaaa44c52fe0.tar.zst | |
structure: Create apps dir and copy tooling dir from t3-turbo repo
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/ci.yml | 50 | ||||
| -rw-r--r-- | .github/workflows/main.yml | 36 |
2 files changed, 50 insertions, 36 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..fca0e286 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,50 @@ +name: CI + +on: + pull_request: + branches: ["*"] + push: + branches: ["main"] + merge_group: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} + +# You can leverage Vercel Remote Caching with Turbo to speed up your builds +env: + FORCE_COLOR: 3 + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Setup + uses: ./tooling/github/setup + + - name: Lint + run: pnpm lint && pnpm lint:ws + + format: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Setup + uses: ./tooling/github/setup + + - name: Format + run: pnpm format + + typecheck: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Setup + uses: ./tooling/github/setup + + - name: Typecheck + run: pnpm typecheck diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 1662bbe9..00000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: Build and lint -on: - push: - branches: - - main - pull_request: -jobs: - build-lint: - name: Build and Lint - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - # This is a workaround for: https://github.com/actions/setup-node/issues/899 - - name: Enable Corepack before setting up Node - run: corepack enable - - uses: actions/setup-node@v4 - with: - node-version: 21 - cache: "pnpm" - - name: Install deps - env: - PUPPETEER_SKIP_DOWNLOAD: true - run: pnpm install - - name: Format - run: pnpm format:check - - name: Lint - run: pnpm lint - - name: Build the workers package - working-directory: packages/workers - run: pnpm typecheck - - name: Build web app - working-directory: packages/web - run: pnpm run build - - name: Build the browser extension - working-directory: packages/browser-extension - run: pnpm build |
