Skip to content

build(deps): bump @vitejs/plugin-vue from 5.1.4 to 5.1.5 in /frontend #13471

build(deps): bump @vitejs/plugin-vue from 5.1.4 to 5.1.5 in /frontend

build(deps): bump @vitejs/plugin-vue from 5.1.4 to 5.1.5 in /frontend #13471

Workflow file for this run

name: backend
on: push
jobs:
files-changed:
name: Detect File Changes - backend/
runs-on: ubuntu-latest
outputs:
backend: ${{ steps.filter.outputs.backend }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.1.7
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
id: filter
with:
filters: |
backend:
- '.github/workflows/**/*'
- 'backend/**/*'
build:
if: needs.files-changed.outputs.backend == 'true'
name: Build - Backend
needs: files-changed
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.1.7
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.0.3
with:
node-version-file: './.tool-versions'
- name: Backend | Build
run: npm install && npm run build
working-directory: ./backend
lint:
if: needs.files-changed.outputs.backend == 'true'
name: Lint - Backend
needs: files-changed
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.1.7
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.0.3
with:
node-version-file: './.tool-versions'
- name: Backend | Lint
run: npm install && npm run test:lint
working-directory: ./backend
unit:
if: needs.files-changed.outputs.backend == 'true'
name: Unit - Backend
needs: files-changed
runs-on: ubuntu-latest
env:
DATABASE_URL: mysql://root:@localhost:3306/dreammall.earth
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.1.7
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.0.3
with:
node-version-file: './.tool-versions'
- run: touch backend/.env # docker-compose requires `env_file:` to be present https://github.com/docker/compose/issues/3560
- name: Backend | docker-compose database
run: docker compose -f docker-compose.yml up --detach --no-deps database
- name: Backend | Unit
run: npm install && npm run db:migrate && npm run test:unit
working-directory: ./backend