Skip to content

Commit

Permalink
👷 ci: Enable Vercel Remote Caching, add job timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
aryanprince committed Jul 22, 2024
1 parent 840c007 commit 0901f8b
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}

# # You can leverage Vercel Remote Caching with Turbo to speed up your builds
# # @link https://turborepo.org/docs/core-concepts/remote-caching#remote-caching-on-vercel-builds
# env:
# FORCE_COLOR: 3
# TURBO_TEAM: ${{ vars.TURBO_TEAM }}
# TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
# You can leverage Vercel Remote Caching with Turbo to speed up your builds
# @link https://turborepo.org/docs/core-concepts/remote-caching#remote-caching-on-vercel-builds
env:
FORCE_COLOR: 3
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}

jobs:
lint:
Expand Down Expand Up @@ -54,11 +54,10 @@ jobs:

commitlint:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup
uses: ./tooling/github-actions/setup
Expand All @@ -72,13 +71,17 @@ jobs:
run: pnpm commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose

build:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

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

- name: Run local databases with Docker Compose
uses: hoverkraft-tech/compose-action@v2.0.1

- name: Setup environment variables for Student
run: cp .env.example .env
working-directory: apps/student/
Expand All @@ -91,9 +94,6 @@ jobs:
run: cp .env.example .env
working-directory: apps/finance/

- name: Cache for Turbo
uses: rharkor/caching-for-turbo@v1.5

- name: Build monorepo
run: pnpm build

Expand Down

0 comments on commit 0901f8b

Please sign in to comment.