chore(deps): update all dependencies #4224
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 | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
node: ['18.13.0', '20.9.0'] | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v4 | |
- name: Cache node modules | |
uses: actions/cache@v4 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node-${{ matrix.node }} | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Install dependencies | |
run: npm ci | |
- name: ESLint | |
run: npm run lint | |
- name: Prettier | |
run: npm run prettier:check | |
- name: Test | |
run: npm run test | |
- name: Copy .env | |
run: cp .env.dist .env | |
- name: Build the docker-compose stack | |
run: docker-compose up -d --build postgres | |
- name: Check running containers | |
run: docker ps -a | |
- name: E2E | |
run: npm run test:e2e | |
- name: Build | |
run: npm run build |