Require user signatures (#22) #34
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 Pipeline | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the repository | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
# Set up Node.js | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' | |
# Install dependencies | |
- name: Install dependencies | |
run: npm install | |
# Run linting | |
- name: Run ESLint | |
run: npm run lint | |
# Check formatting with Prettier | |
- name: Check Prettier formatting | |
run: npm run prettier -- --check | |
# Run the build | |
- name: Run build | |
run: npm run build |