feat: bump mongoose from 8.5.2 to 8.7.3 in /server #605
Workflow file for this run
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: PR | |
on: | |
pull_request: | |
types: | |
- opened | |
- edited | |
- synchronize | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages | |
permissions: | |
id-token: write | |
contents: write | |
issues: write | |
pull-requests: write | |
jobs: | |
style: | |
name: JavaScript Standard Style | |
runs-on: ubuntu-latest | |
environment: testing | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: npm ci | |
- name: style | |
run: npm run style | |
test_server: | |
name: Server | |
runs-on: ubuntu-latest | |
environment: testing | |
needs: [style] | |
steps: | |
- name: ππ» Checkout | |
uses: actions/checkout@v3 | |
- name: ππ» Setup mongodb | |
run: | | |
cd server | |
docker-compose up -d | |
- name: ππ» Run server | |
run: | | |
cd server | |
npm ci | |
npm run start & | |
test_client: | |
name: Client | |
runs-on: ubuntu-latest | |
environment: testing | |
needs: [style] | |
steps: | |
- name: ππ» Checkout | |
uses: actions/checkout@v3 | |
- name: ππ» Setup and build | |
run: | | |
cd client | |
npm i --force | |
npm run build | |
npm run preview & | |
- name: π Run tests | |
run: | | |
cd client | |
npm run test | |
dependabot_automerge: | |
name: Approve and automerge (only dependanbot PRs) | |
runs-on: ubuntu-latest | |
environment: testing | |
needs: [test_client, test_server, style] | |
if: ${{ github.actor == 'dependabot[bot]' }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Dependabot metadata | |
id: dependabot-metadata | |
uses: dependabot/fetch-metadata@v1.1.1 | |
with: | |
github-token: "${{ secrets.GITHUB_TOKEN }}" | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Approve a PR | |
run: gh pr review --approve "$PR_URL" | |
env: | |
PR_URL: ${{github.event.pull_request.html_url}} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Enable auto-merge for Dependabot PRs | |
if: ${{ steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' }} | |
run: gh pr merge --auto --merge "$PR_URL" | |
env: | |
PR_URL: ${{ github.event.pull_request.html_url }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |