Skip to content

Commit

Permalink
Add CI pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
epicfaace committed Aug 1, 2023
1 parent 1c8d57a commit dd1fa73
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Full CI Pipeline

on:
pull_request:
branches: [ main ]

jobs:
lint:
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2.4.1
with:
node-version: 18
cache: 'yarn'
- run: yarn
- run: yarn lint

build:
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2.4.1
with:
node-version: 18
cache: 'yarn'
- run: yarn
- run: yarn build
3 changes: 2 additions & 1 deletion libs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"-i,--interlaced": "Print the output of commands in real-time instead of buffering it",
"-j,--jobs": "The maximum number of parallel tasks that the execution will be limited to",
"-t,--topological": "Run the command after all workspaces it depends on (regular) have finished",
"build": "yarn workspace skiff-utils build && yarn workspace skiff-mail-protos build && yarn workspace skiff-graphql build && yarn workspace @skiff-org/skiff-crypto build && yarn workspace skiff-front-graphql build && yarn workspace skiff-front-utils build"
"build": "yarn workspace skiff-utils build && yarn workspace skiff-mail-protos build && yarn workspace skiff-graphql build && yarn workspace @skiff-org/skiff-crypto build && yarn workspace skiff-front-graphql build && yarn workspace skiff-front-utils build && yarn workspace skiff-prosemirror build",
"lint": "yarn workspace skiff-utils lint && yarn workspace skiff-mail-protos lint && yarn workspace skiff-graphql lint && yarn workspace @skiff-org/skiff-crypto lint && yarn workspace skiff-front-graphql lint && yarn workspace skiff-front-utils lint && yarn workspace skiff-prosemirror lint"
}
}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
"scripts": {
"postinstall": "yarn workspace @skiff-org/skiff-crypto install",
"build:lib": "yarn workspace libs build",
"dev": "yarn workspace skiff-mail-web dev"
"dev": "yarn workspace skiff-mail-web dev",
"lint": "yarn workspace libs lint && yarn workspace skiff-mail-web lint",
"build": "yarn workspace libs build && yarn workspace skiff-mail-web build"
}
}

0 comments on commit dd1fa73

Please sign in to comment.