Skip to content

Commit

Permalink
feat: initialises ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ixahmedxi committed Jun 1, 2023
1 parent 8f6d8c2 commit 2cc1f65
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 46 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI

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

jobs:
build:
name: Build and Test
timeout-minutes: 15
runs-on: ubuntu-latest
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}

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

- uses: pnpm/[email protected]

- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm build

- name: Test
run: pnpm test
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -133,4 +133,7 @@ dist
.DS_Store

# storybook
storybook-static
storybook-static.turbo

# Turborepo files
.turbo
45 changes: 0 additions & 45 deletions nx.json

This file was deleted.

0 comments on commit 2cc1f65

Please sign in to comment.