Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# These are supported funding model platforms

patreon: streetsidesoftware
tidelift: "npm/cspell"
tidelift: 'npm/cspell'
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
- streetsidesoftware
open_collective: cspell
Expand Down
24 changes: 0 additions & 24 deletions .github/actions/github-app-token/action.yaml

This file was deleted.

68 changes: 0 additions & 68 deletions .github/actions/pr/action.yaml

This file was deleted.

10 changes: 5 additions & 5 deletions .github/actions/setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ inputs:
node-version:
required: false
description: The version of Node to use.
default: "22.x"
default: '22.x'
runs:
using: "composite"
using: 'composite'
steps:
- name: Use Node.js ${{ inputs.node-version }}
uses: actions/setup-node@v6
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6
with:
registry-url: "https://registry.npmjs.org"
registry-url: 'https://registry.npmjs.org'
node-version: ${{ inputs.node-version }}
cache: "npm"
cache: 'npm'
- name: NPM Version
run: npm -v;
shell: bash
14 changes: 7 additions & 7 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
- package-ecosystem: 'npm' # See documentation for possible values
directory: '/' # Location of package manifests
schedule:
interval: "weekly"
interval: 'weekly'

- package-ecosystem: "github-actions"
- package-ecosystem: 'github-actions'
# Workflow files stored in the
# default location of `.github/workflows`
directories:
- "/"
- "/.github/actions/*"
- '/'
- '/.github/actions/*'
schedule:
interval: "daily"
interval: 'daily'
2 changes: 1 addition & 1 deletion .github/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ changelog:
- dev
- title: Other Changes
labels:
- "*"
- '*'
- title: Maintenance
labels:
- chore
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "CodeQL"
name: 'CodeQL'

on:
push:
Expand All @@ -11,7 +11,7 @@ on:
- cspell4
workflow_dispatch:
schedule:
- cron: "0 23 * * 0"
- cron: '0 23 * * 0'

jobs:
analyze:
Expand All @@ -20,15 +20,15 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v5
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
with:
# Make sure it goes back far enough to find where the branch split from main
fetch-depth: 20

- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: "javascript"
languages: 'javascript'

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
4 changes: 2 additions & 2 deletions .github/workflows/cspell-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
cspell:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
- uses: streetsidesoftware/cspell-action@v8
with:
files: "."
files: '.'
incremental_files_only: false
check_dot_files: true
18 changes: 9 additions & 9 deletions .github/workflows/publish-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,34 @@
# To get a newer version, you will need to update the SHA.
# You can also reference a tag or branch, but the action may change without warning.

name: " 📦 Publish Docker Images"
name: ' 📦 Publish Docker Images'

on:
workflow_dispatch:
inputs:
dryRun:
description: "Dry Run"
description: 'Dry Run'
type: choice
options:
- "yes"
- "no"
default: "no"
- 'yes'
- 'no'
default: 'no'
required: false
ref:
description: "Reference / tag to publish"
description: 'Reference / tag to publish'
required: false
type: string

workflow_call:
inputs:
ref:
description: "Reference / tag to publish"
description: 'Reference / tag to publish'
required: true
type: string

env:
REGISTRY: ghcr.io
IMAGE_NAME: "streetsidesoftware/cspell"
IMAGE_NAME: 'streetsidesoftware/cspell'

permissions:
contents: read
Expand All @@ -44,7 +44,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v5
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
with:
ref: ${{ github.event.inputs.ref || github.ref }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: " 🚀 release-please"
name: ' 🚀 release-please'

on:
push:
Expand Down Expand Up @@ -35,7 +35,7 @@ jobs:
id-token: write
steps:
# The logic below handles the npm publication:
- uses: actions/checkout@v5
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
with:
ref: ${{ needs.release-please.outputs.tag_name }}
- name: Setup
Expand Down
43 changes: 10 additions & 33 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: " 🧪 Test"
name: ' 🧪 Test'
on:
pull_request:
push:
Expand All @@ -16,47 +16,24 @@ jobs:
# List of supported node versions (latest is tested in `test-os`)
- 20.x
- 22.x
- 23.x

- 24.x
- 25.x
os:
- ubuntu-latest

steps:
- uses: actions/checkout@v5

- name: Setup
uses: ./.github/actions/setup
with:
node-version: ${{ matrix.node-version }}

- run: npm -v
- run: npm ci --omit=dev
- run: npm test

# Ensure the repository is clean after build & test
- run: git --no-pager diff --compact-summary --exit-code

test-os:
runs-on: ${{ matrix.os }}

strategy:
matrix:
node-version:
# Test the latest node version here, move older versions to `test-old-node-versions`
- 22.x

os:
- windows-latest
# - macos-latest
include:
- os: windows-latest
node-version: 24.x

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5

- name: Setup
uses: ./.github/actions/setup
with:
node-version: ${{ matrix.node-version }}

- run: npm -v
- run: npm ci --omit=dev
- run: npm test

Expand All @@ -67,6 +44,6 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
- run: docker build -t cspell .
- run: docker run -v $(pwd):/workdir cspell
- run: docker run -v $(pwd):/workdir cspell .
16 changes: 8 additions & 8 deletions .github/workflows/update-cspell.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
name: " 📚 Update CSpell"
name: ' 📚 Update CSpell'

on:
workflow_dispatch:
inputs:
base:
description: The Base Ref to apply the diff
required: false
default: "main"
default: 'main'

push:
branches:
- main
paths:
- "**/package.json"
- "**/package-lock.json"
- '**/package.json'
- '**/package-lock.json'

schedule:
- cron: "0 7 * * *"
- cron: '0 7 * * *'

jobs:
update-cspell:
Expand All @@ -33,7 +33,7 @@ jobs:
echo "$EVENT_INPUTS"

- name: Checkout code
uses: actions/checkout@v5
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
with:
ref: ${{ env.REF_BRANCH }}

Expand Down Expand Up @@ -130,10 +130,10 @@ jobs:
if: steps.git-status.outputs.isDirty
uses: streetsidesoftware/actions/.github/actions/pr@v1
with:
commit-message: "${{ env.PR_TYPE }}: ${{ steps.commit_message.outputs.value }}"
commit-message: '${{ env.PR_TYPE }}: ${{ steps.commit_message.outputs.value }}'
branch: ${{ env.NEW_BRANCH }}
base: ${{ env.REF_BRANCH }}
title: "${{ env.PR_TYPE }}: ${{ steps.commit_message.outputs.value }}"
title: '${{ env.PR_TYPE }}: ${{ steps.commit_message.outputs.value }}'
body: ${{ steps.body.outputs.body }}
app_id: ${{ secrets.AUTOMATION_APP_ID }}
app_private_key: ${{ secrets.AUTOMATION_PRIVATE_KEY }}
Loading