dependency: (deps): bump charset-normalizer from 3.4.0 to 3.4.1 in /backend #182
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: CI | |
on: | |
push: | |
branches: ['main'] | |
pull_request: | |
branches: ['main'] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build docker image and run tests | |
run: | | |
docker compose build | |
docker compose up -d | |
docker compose run backend python manage.py test | |
docker compose down | |
frontend-build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x, 22.x] | |
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
cache-dependency-path: './frontend/package-lock.json' | |
- run: npm ci | |
working-directory: ./frontend | |
- run: npm run build --if-present | |
working-directory: ./frontend | |
- run: npm test | |
working-directory: ./frontend | |
dependabot: | |
permissions: | |
pull-requests: write | |
contents: write | |
name: 'Dependabot' | |
# After the other jobs complete, if one of them fails, it won't merge the PR. | |
needs: [build, frontend-build] | |
runs-on: ubuntu-latest | |
# Detect that the PR author is dependabot | |
if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'}} | |
steps: | |
- name: Enable auto-merge for Dependabot PRs | |
# Use Github CLI to merge automatically the PR | |
run: gh pr merge --auto --merge "$PR_URL" | |
env: | |
PR_URL: ${{github.event.pull_request.html_url}} | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |