Skip to content
Merged
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
9 changes: 7 additions & 2 deletions .github/workflows/function.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,15 @@ jobs:
with:
node-version: 20

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: latest

- name: Install Dependencies
run: npm install
run: pnpm install
working-directory: ./function

- name: Run Prettier
run: npm run lint
run: pnpm lint
working-directory: ./function
11 changes: 8 additions & 3 deletions .github/workflows/source.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,19 @@ jobs:
with:
node-version: 20

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: latest

- name: Install Dependencies
run: npm install
run: pnpm install
working-directory: ./source

- name: Run Prettier
run: npm run lint
run: pnpm lint
working-directory: ./source

- name: Run Tests
run: npm run tests
run: pnpm build && pnpm tests
working-directory: ./source
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@

*.sh
**/package-lock.json
**/pnpm-lock.yaml

# readme in the source folder, only used for npm.
source/README.md

# functions
**/code.tar.gz
**/code.tar.gz

# build files
**/dist
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ Your contributions are valued, whether it's reporting issues or suggesting enhan
- Documentation tweaks: Clearly state the nature of your updates.

2. **Develop & Test**
- Implement your changes and ensure code quality by running `npm run lint`.
- Resolve any formatting issues with `npm run format`.
- For new features or refactoring, add and run tests using `npm run tests`.
- Implement your changes and ensure code quality by running `pnpm lint`.
- Resolve any formatting issues with `pnpm format`.
- For new features or refactoring, add and run tests using `pnpm build && pnpm tests`.

3. **Open a Pull Request**
- Ensure you're assigned to the issue before proceeding to PR.
Expand Down
3 changes: 2 additions & 1 deletion function/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@
"devDependencies": {
"prettier": "3.2.5",
"@types/react": "^18.3.2"
}
},
"packageManager": "pnpm@10.15.0"
}
Loading