-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update CI/CD documentation and workflows
Updated the README to include detailed descriptions of Continuous Integration (CI) and Continuous Deployment (CD) workflows. Included explanations for the push and pull request workflows, with a description of actions taken during each workflow. Added future work recommendations for enhanced workflows. Updated the pull request checks and push check workflows, with clear instructions for code formatting, linting, and type-checking steps. Signed-off-by: Giovanni Ravalico <[email protected]>
- Loading branch information
1 parent
7d11719
commit 05f8dd9
Showing
3 changed files
with
114 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: 🔗Pull Request Checks Workflow | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
types: | ||
- opened | ||
- synchronize | ||
- reopened | ||
jobs: | ||
checks: | ||
name: 🫸 Pull Request Checks | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: 📥 Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: 📦 Install pnpm | ||
uses: pnpm/action-setup@v3 | ||
with: | ||
version: 8 | ||
run_install: false | ||
|
||
- name: 🗂️ Get pnpm store directory | ||
shell: bash | ||
run: | | ||
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | ||
- name: 🛠️ Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: current | ||
cache: 'pnpm' | ||
|
||
- name: 🗄️ Setup pnpm cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{ env.STORE_PATH }} | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-store- | ||
- name: 🧩 Install dependencies | ||
run: pnpm install --frozen-lockfile | ||
|
||
- name: 📝 Format code | ||
# this step should: | ||
# - only be run on the code that has been changed | ||
# - not apply automatic fixes | ||
# - add a comment to the pull request with the changes | ||
run: pnpm format | ||
|
||
- name: 🚨 Lint code | ||
# this step should: | ||
# - only be run on the code that has been changed | ||
# - not apply automatic fixes | ||
# - add a comment to the pull request with the changes | ||
run: pnpm lint | ||
|
||
- name: 🔍 Typecheck code | ||
# this step should: | ||
# - only be run on the code that has been changed | ||
# - not apply automatic fixes | ||
# - add a comment to the pull request with the changes | ||
run: pnpm typecheck | ||
|
||
- name: 🧪 Run tests | ||
run: pnpm test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters