Skip to content

Jira - Add Get Cloud ID action and Jira Data Center #23133

Jira - Add Get Cloud ID action and Jira Data Center

Jira - Add Get Cloud ID action and Jira Data Center #23133

name: Pull Request Checks
#
# Documentation:
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
#
on:
pull_request:
branches:
- master
workflow_dispatch: # Allows manual triggering from Actions tab
jobs:
spellcheck:
name: Spellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
name: Checkout
- uses: Ana06/get-changed-files@v2.3.0
id: changed_files
name: Get changed files
- id: md_changed_files
name: Spellcheck Markdown files
run: |-
files=''
for f in ${{ steps.changed_files.outputs.added_modified }}
do
ext="${f##*.}"
if [ $ext = "md" ] || [ $ext = "mdx" ]
then
files="${f} ${files}"
fi
done
echo "files=${files}" >> $GITHUB_ENV
- uses: rojopolis/spellcheck-github-actions@0.59.0
name: Spellcheck
if: ${{ env.files }}
with:
source_files: ${{ env.files }}
task_name: Markdown
lint:
name: Lint Code Base
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v6
with:
# Fetch enough history to find merge-base with master
# 300 commits handles most long-running feature branches
fetch-depth: 300
- name: Fetch base branch for diff
run: git fetch origin master --depth=1
- name: Setup pnpm
uses: pnpm/action-setup@v4.2.0
with:
version: 10.28.2
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 20
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
# ESLint only on changed files
- name: Get Changed Files (space-separated)
id: changed_files_space
uses: Ana06/get-changed-files@v2.3.0
with:
format: 'space-delimited'
- name: Lint changed files
run: pnpm exec eslint ${{ steps.changed_files_space.outputs.added_modified }} ${{ steps.changed_files_space.outputs.renamed }}
- name: Get Changed Files (comma-separated)
id: changed_files
uses: Ana06/get-changed-files@v2.3.0
with:
format: 'csv'
# NOTE: These steps are kept in this workflow to avoid re-rerunning the rest of the lint job
# in the Components Checks workflow
- name: Build TypeScript Components
run: pnpm build
- name: Check component keys
run: node scripts/findBadKeys.js ${{ steps.changed_files.outputs.added_modified }} ${{ steps.changed_files.outputs.renamed }}
- name: Check component app prop
run: node --experimental-loader ./scripts/version-strip-loader.mjs scripts/checkComponentAppProp.js ${{ steps.changed_files.outputs.added_modified }} ${{ steps.changed_files.outputs.renamed }}
- name: Check for duplicate component keys
run: node scripts/findDuplicateKeys.js