feat: bump mongoose from 8.5.2 to 8.6.3 in /server #1271
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: | |
test_server: | |
name: Server | |
runs-on: ubuntu-latest | |
environment: testing | |
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: [test_server] | |
steps: | |
- name: ππ» Checkout | |
uses: actions/checkout@v3 | |
- name: ππ» Setup and build | |
run: | | |
cd client | |
npm ci | |
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 | |
needs: [test_client] | |
environment: testing | |
if: ${{ github.actor == 'dependabot[bot]' }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Dependabot metadata | |
id: dependabot-metadata | |
uses: dependabot/[email protected] | |
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 }} |