Add pre-commit hook and update README.md and package.json #17
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
name: CI Workflow | |
on: | |
push: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [21.x] | |
steps: | |
- name: 🔄 Checkout code | |
uses: actions/checkout@v2 | |
- name: 🔧 Set up Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: 📦 Install dependencies | |
run: npm ci | |
- name: 🖋️ Format code | |
run: npm run format | |
- name: 🧹 Lint code | |
run: npm run lint | |
- name: 🧪 Run tests | |
run: npm run test | |
env: | |
CI: true | |
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} | |
deploy: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🚀 Deploy | |
run: echo "Replace this with your deployment commands" |