mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
workflows/editorconfig.editorconfig-checker: 2.4.0 -> 3.2.0
We have a pinned nixpkgs revision for all our CI tools, but we're not making use of it for editorconfig-checker. Instead, it has it's own, unmaintained, pin. Let's fix that. On the way, we're upgrading the tool to 3.2.1, which requires adjusting our .editorconfig file slightly to ignore auto-generated package-lock.json files.
This commit is contained in:
parent
5d14516619
commit
a70d047c15
2 changed files with 11 additions and 5 deletions
|
@ -48,9 +48,10 @@ indent_size = 4
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
indent_style = space
|
indent_style = space
|
||||||
|
|
||||||
# Match package.json, which are generally pulled from upstream and accept them as they are
|
# Match package.json and package-lock.json, which are generally pulled from upstream and accept them as they are
|
||||||
[package.json]
|
[package{,-lock}.json]
|
||||||
indent_style = unset
|
indent_style = unset
|
||||||
|
insert_final_newline = unset
|
||||||
|
|
||||||
# Disable file types or individual files
|
# Disable file types or individual files
|
||||||
# some of these files may be auto-generated and/or require significant changes
|
# some of these files may be auto-generated and/or require significant changes
|
||||||
|
|
11
.github/workflows/editorconfig-v2.yml
vendored
11
.github/workflows/editorconfig-v2.yml
vendored
|
@ -32,11 +32,16 @@ jobs:
|
||||||
with:
|
with:
|
||||||
ref: ${{ needs.get-merge-commit.outputs.mergedSha }}
|
ref: ${{ needs.get-merge-commit.outputs.mergedSha }}
|
||||||
|
|
||||||
|
- name: Get Nixpkgs revision for editorconfig-checker
|
||||||
|
run: |
|
||||||
|
# Pin to a commit from nixpkgs-unstable to avoid building from e.g. staging.
|
||||||
|
# This should not be a URL, because it would allow PRs to run arbitrary code in CI!
|
||||||
|
rev=$(jq -r .rev ci/pinned-nixpkgs.json)
|
||||||
|
echo "url=https://github.com/NixOS/nixpkgs/archive/$rev.tar.gz" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
- uses: cachix/install-nix-action@526118121621777ccd86f79b04685a9319637641 # v31
|
- uses: cachix/install-nix-action@526118121621777ccd86f79b04685a9319637641 # v31
|
||||||
with:
|
with:
|
||||||
# nixpkgs commit is pinned so that it doesn't break
|
nix_path: nixpkgs=${{ env.url }}
|
||||||
# editorconfig-checker 2.4.0
|
|
||||||
nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/c473cc8714710179df205b153f4e9fa007107ff9.tar.gz
|
|
||||||
|
|
||||||
- name: Checking EditorConfig
|
- name: Checking EditorConfig
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue