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/workflows/ci.json.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ on:
workflow_dispatch:
jobs:
lint:
uses: parcelLab/ci/.github/workflows/json.yaml@v9
uses: ./.github/workflows/json.yaml
3 changes: 2 additions & 1 deletion .github/workflows/ci.pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ jobs:
- name: Run actionlint
run: /home/runner/go/bin/actionlint
yamllint:
uses: parcelLab/ci/.github/workflows/yaml.yaml@v9
# Local copy, not @v9: a PR must validate its own workflow changes.
uses: ./.github/workflows/yaml.yaml
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ on:
workflow_dispatch:
jobs:
lint:
uses: parcelLab/ci/.github/workflows/yaml.yaml@v9
uses: ./.github/workflows/yaml.yaml
8 changes: 5 additions & 3 deletions .github/workflows/json.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ jobs:
steps:
- name: Checkout current git repository
uses: actions/checkout@v7
- name: Lint JSON
uses: actionsx/prettier@v3
- name: Set up node environment
uses: actions/setup-node@v7
with:
args: --check "**/*.json"
node-version: lts/*
- name: Lint JSON
run: npx --yes prettier@3.9.6 --check -- "**/*.json"
22 changes: 13 additions & 9 deletions .github/workflows/yaml.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,18 @@ jobs:
- name: Checkout current git repository
uses: actions/checkout@v7

- name: Lint all YAML files
uses: actionsx/prettier@v3
if: ${{ inputs.additional_args == '' }}
- name: Set up node environment
uses: actions/setup-node@v7
with:
args: --check "**/*.{yaml,yml}"
node-version: lts/*

- name: Lint some YAML files
uses: actionsx/prettier@v3
if: ${{ inputs.additional_args != '' }}
with:
args: --check "**/*.{yaml,yml}" "${{ inputs.additional_args }}"
- name: Lint YAML files
# npx, not npm ci: calling repositories may have no package.json.
env:
ADDITIONAL_ARGS: ${{ inputs.additional_args }}
run: |
# Split additional_args into words, but leave the globs for Prettier
# to interpret rather than letting bash expand them against the repo.
set -f
# shellcheck disable=SC2086
npx --yes prettier@3.9.6 --check -- "**/*.{yaml,yml}" $ADDITIONAL_ARGS
24 changes: 8 additions & 16 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
# Mac
.DS_Store

# Node
node_modules

# Windows
Thumbs.db

# Editor
# Directories
.idea/
.vscode
.vscode/
node_modules/
tmp/

# vi
*~

# General
log/
# Files
*.log
*~
.DS_Store
Thumbs.db
13 changes: 7 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"husky": "^8.0.3",
"is-ci": "^3.0.1",
"lint-staged": "^13.1.0",
"prettier": "2.8.3"
"prettier": "3.9.6"
},
"lint-staged": {
"**/*": "prettier --write --ignore-unknown"
Expand Down
Loading