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
11 changes: 9 additions & 2 deletions .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,16 @@ jobs:

- name: Compare the expected and actual dist/ directories
run: |
if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then
# `git diff` alone can't see files the build newly added, so check for
# untracked files in dist/ too.
untracked="$(git ls-files --others --exclude-standard -- dist/)"
changed="$(git diff --ignore-space-at-eol -- dist/)"
if [ -n "$untracked" ] || [ -n "$changed" ]; then
echo "Detected uncommitted changes after build. See status below:"
git diff
if [ -n "$untracked" ]; then
printf 'Untracked files in dist/:\n%s\n' "$untracked"
fi
git diff -- dist/
exit 1
fi
id: diff
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7

- name: Setup Node.js
uses: actions/setup-node@v7.0.0
with:
node-version-file: package.json
cache: npm

- run: npm ci
- run: npm test

Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ outputs:
description: JSON array of all found projects (`project` object) that implement a `package` command

runs:
using: "node20"
using: "node24"
main: "dist/index.js"
4 changes: 3 additions & 1 deletion determine-skips.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const { determineSkips } = require("./find-python-projects.js");
import { describe, it, expect } from "@jest/globals";

import { determineSkips } from "./find-python-projects.js";

describe("determineSkips", () => {
const GLOBAL_KEY = "__GLOBAL__";
Expand Down
Loading