Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CI pipeline #92

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Full CI Pipeline

on:
pull_request:
branches: [ main ]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/[email protected]
with:
node-version: 18
cache: 'yarn'
- run: yarn
- run: yarn lint

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/[email protected]
with:
node-version: 18
cache: 'yarn'
- run: yarn
- run: yarn build
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ The core team will promptly review your Pull Request and either merge it or requ

### Code style

Make sure to enable lint on-save. You can also run the commands `yarn prettier` and `yarn lint`. This will be checked by CI when you open a Pull request.
Make sure to enable lint on-save. You can also run the command `yarn lint`. This will be checked by CI when you open a Pull request.
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"
}
}
Loading