Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

build(deps): bump phoenix_ecto from 4.6.5 to 4.7.0 in /elixir #3497

build(deps): bump phoenix_ecto from 4.6.5 to 4.7.0 in /elixir

build(deps): bump phoenix_ecto from 4.6.5 to 4.7.0 in /elixir #3497

name: Static Analysis
on:
workflow_call:
pull_request:
types: [edited]
jobs:
pr-lint:
if: github.event_name == 'pull_request'
runs-on: ubuntu-24.04
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
permissions:
pull-requests: read
steps:
- name: Enforce PR title length <= 64
# Don't run for Dependabot PRs
if: ${{ !contains(github.event.pull_request.head.label, 'dependabot') }}
env:
PULL_REQUEST_NUMBER: ${{ github.event.pull_request.number }}
REPOSITORY_NAME: ${{ github.repository }}
run: |
PR_TITLE=$(gh pr view "$PULL_REQUEST_NUMBER" --repo "$REPOSITORY_NAME" --json title -q '.title')
pr_title_length=${#PR_TITLE}
# 64 instead of 72 because GitHub adds the PR number to the title
if [ "$pr_title_length" -gt 64 ]; then
echo "PR title too long. Please keep it under 64 characters."
exit 1
fi
- uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 #v6.1.1
version-check:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Check version is up to date
run: |
./scripts/bump-versions.sh
if [ -z "$(git status --porcelain)" ]; then
# Working directory clean
echo "Version manifests up to date"
else
# Uncommitted changes
echo "'scripts/bump-versions.sh' found outdated files! Showing diff"
git diff
exit 1
fi
link-check:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- uses: lycheeverse/lychee-action@a8c4c7cb88f0c7386610c35eb25108e448569cb0 # v2.7.0
with:
fail: true
args: --offline --verbose --no-progress **/*.md
actionlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- uses: raven-actions/actionlint@3a24062651993d40fed1019b58ac6fbdfbf276cc # v2.0.1
global-linter:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1
- uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
name: Restore pip cache
id: pip-cache
with:
path: ~/.cache/pip
key: ubuntu-24.04-${{ runner.arch }}-pip-${{ hashFiles('.github/requirements.txt') }}
- uses: ./.github/actions/setup-node
with:
npmjs-token: ${{ secrets.NPMJS_TOKEN }}
lockfile-dir: ./.github
- name: Run linters
run: mise run lint
- uses: actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
if: ${{ steps.pip-cache.outputs.cache-hit != 'true' }}
name: Save pip cache
with:
path: ~/.cache/pip
key: ${{ steps.pip-cache.outputs.cache-primary-key }}