Skip to content

Commit

Permalink
ci: update github action script
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrad77 committed Nov 1, 2024
1 parent dc02603 commit 4b4d690
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 31 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI

on:
push:
branches: ["main"]
pull_request:
types: [opened, synchronize]

jobs:
build:
name: Build and Test
timeout-minutes: 15
runs-on: ubuntu-latest
# To use Remote Caching, uncomment the next lines and follow the steps below.
# env:
# TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
# TURBO_TEAM: ${{ vars.TURBO_TEAM }}

steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 2

- uses: pnpm/action-setup@v3
with:
version: 8

- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm build

- name: Test
run: pnpm test
31 changes: 0 additions & 31 deletions .github/workflows/main.yml

This file was deleted.

0 comments on commit 4b4d690

Please sign in to comment.