Skip to content

chore(deps): Update dependency antd to ^5.29.1 #1305

chore(deps): Update dependency antd to ^5.29.1

chore(deps): Update dependency antd to ^5.29.1 #1305

Workflow file for this run

name: Lint
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
lint-packages:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Ensure main branch exists
if: github.ref != 'refs/heads/main'
run: |
set -euo pipefail
git rev-parse --verify main \
|| git remote set-branches origin main \
&& git fetch --depth 1 origin main \
&& git branch main origin/main
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: "package.json"
cache: "pnpm"
- name: Setup GoLang
uses: actions/setup-go@v5
with:
go-version-file: "go.work"
cache-dependency-path: "apps/api/go.sum"
- name: Install golangci-lint
uses: golangci/golangci-lint-action@v8
with:
args: "--help"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run Linters
run: |
set -euo pipefail
NX_BASE="HEAD^1"
if [[ $GITHUB_EVENT_NAME == 'pull_request' ]]; then
NX_BASE=main
fi
npx nx affected -t lint --base="$NX_BASE" --verbose
lint-migrations:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- app: "api"
migrations-path: "apps/api/db/migrations"
env:
GITHUB_TOKEN: ${{ github.token }}
permissions:
pull-requests: write
services:
postgres:
image: postgres:17
env:
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check modified files
id: check_migrations
run: |
if git diff --name-only ${{ github.sha }} ${{ github.event.before }} | grep '^${{ matrix.migrations-path }}/'; then
echo "migrations_changed=true" >> $GITHUB_OUTPUT
else
echo "migrations_changed=false" >> $GITHUB_OUTPUT
fi
- name: Setup Atlas
if: steps.check_migrations.outputs.migrations_changed == 'true'
uses: ariga/setup-atlas@v0
with:
cloud-token: ${{ secrets.ATLAS_TOKEN }}
- name: Run Linters
if: steps.check_migrations.outputs.migrations_changed == 'true'
uses: ariga/atlas-action/migrate/lint@v1
with:
dir: "file://${{ matrix.migrations-path }}"
dir-name: "follytics-${{ matrix.app }}"
dev-url: "postgres://postgres:postgres@localhost:5432/postgres?sslmode=disable"
lint-chart:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check modified files
id: check_chart
run: |
if git diff --name-only ${{ github.sha }} ${{ github.event.before }} | grep '^chart/'; then
echo "chart_changed=true" >> $GITHUB_OUTPUT
else
echo "chart_changed=false" >> $GITHUB_OUTPUT
fi
- name: Set up Helm
if: steps.check_chart.outputs.chart_changed == 'true'
uses: azure/[email protected]
- name: Set up chart-testing
if: steps.check_chart.outputs.chart_changed == 'true'
uses: helm/[email protected]
- name: Create kind cluster
if: steps.check_chart.outputs.chart_changed == 'true'
uses: helm/[email protected]
- name: Run Linter
if: steps.check_chart.outputs.chart_changed == 'true'
run: ct lint --target-branch ${{ github.event.repository.default_branch }}
- name: Install Chart
if: steps.check_chart.outputs.chart_changed == 'true'
run: ct install --target-branch ${{ github.event.repository.default_branch }}