build(deps): bump follow-redirects from 1.15.3 to 1.15.6 in /backend #1
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: Backend CI | |
on: | |
push: | |
branches: | |
- '**' | |
paths: | |
- 'backend/**' | |
jobs: | |
lint-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 18 # Choose the Node.js version you are using | |
- name: Install dependencies | |
run: | | |
cd backend | |
npm install | |
- name: Run ESLint | |
run: | | |
cd backend | |
npm run lint -- --fix | |
git diff --exit-code || { git config user.name "GitHub Actions"; git config user.email "[email protected]"; git add .; git commit -m "Auto-fix ESLint issues"; git push origin $GITHUB_REF; } | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 18 # Choose the Node.js version you are using | |
- name: Install dependencies | |
run: | | |
cd backend | |
npm install | |
- name: Build project | |
run: | | |
cd backend | |
npm run build |