build(deps): bump @vitejs/plugin-vue from 5.1.4 to 5.1.5 in /frontend #13471
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 | |
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 |