chore(deps-dev): bump eslint from 8.57.0 to 9.17.0 #2483
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: Continuos Integration | |
on: [push, pull_request] | |
jobs: | |
lint: | |
name: Lint source code | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout π | |
uses: actions/checkout@v4 | |
- name: Install dependencies π¦ | |
uses: bahmutov/npm-install@v1 | |
- name: Check types 𧩠| |
uses: icrawl/action-tsc@v1 | |
- name: Lint π§Ή | |
run: npm run lint | |
- name: Check format π | |
run: npx prettier --check . | |
unit-test: | |
name: Run unit and integration tests | |
runs-on: ubuntu-latest | |
needs: [lint] | |
steps: | |
- name: Checkout π | |
uses: actions/checkout@v4 | |
- name: Install Node.js with lts/* version | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 'lts/*' | |
cache: npm | |
- name: Install dependencies π¦ | |
run: npm ci | |
- name: Run unit tests π§ͺ | |
run: npm t | |
e2e-test: | |
name: Run E2E tests | |
runs-on: ubuntu-latest | |
needs: [lint] | |
steps: | |
- name: Checkout π | |
uses: actions/checkout@v4 | |
- name: Install Node.js with latest LTS version | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 'lts/*' | |
cache: npm | |
- name: Install dependencies π¦ | |
run: npm ci | |
- name: Build the server ποΈ | |
run: npm run build | |
- name: Run E2E tests π§ͺ | |
run: npm run start:e2e | |
env: | |
NODE_ENV: production | |
SECRET: ${{ github.sha }} | |
release: | |
name: Release a new version π | |
runs-on: ubuntu-latest | |
needs: [unit-test, e2e-test] | |
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
steps: | |
- name: Checkout π | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Install Node.js with latest LTS version | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 'lts/*' | |
cache: npm | |
- name: Install dependencies π¦ | |
run: npm ci | |
- name: Release π | |
run: npm run release | |
env: | |
GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }} |