-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #141 from nikobockerman/use-yarn-and-small-fixes
Use yarn and small fixes
- Loading branch information
Showing
18 changed files
with
1,024 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
FROM mcr.microsoft.com/devcontainers/python:1-3.13-bullseye | ||
FROM mcr.microsoft.com/devcontainers/base:bookworm | ||
|
||
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /usr/local/bin/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: yarn project setup | ||
description: Setup node, yarn and tools for project | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Enable corepack to install yarn | ||
run: corepack enable | ||
shell: bash | ||
- name: Setup node | ||
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4 | ||
with: | ||
node-version: 22 | ||
cache: yarn | ||
- name: Install yarn dev tools | ||
run: yarn install --immutable | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Check - Yarn and dependencies | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- ".github/actions/yarn-project-setup/**" | ||
- ".github/workflows/check-yarn.yaml" | ||
- "package.json" | ||
- "yarn.lock" | ||
workflow_call: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
duplicate-dependencies: | ||
name: Check for duplicate dependencies | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | ||
- name: Setup yarn tools | ||
uses: ./.github/actions/yarn-project-setup | ||
- name: Check for duplicate dependencies | ||
run: yarn run check:yarn:dedupe | ||
|
||
yarn-install-errors: | ||
name: Validate Yarn install does not contain errors | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | ||
- name: Setup project | ||
uses: ./.github/actions/yarn-project-setup | ||
- name: Yarn install output check | ||
run: | | ||
errors=$(yarn install --json | jq 'select(.displayName != "YN0000")') | ||
error_count=$(echo "$errors" | jq -s 'length') | ||
if [ "$error_count" -gt 0 ]; then | ||
echo "Detected Yarn install errors: $error_count" | ||
echo -e "$errors" | ||
exit 1 | ||
fi | ||
peer-requirements: | ||
name: Validate yarn peer requirements | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | ||
- name: Setup project | ||
uses: ./.github/actions/yarn-project-setup | ||
- name: Validate peer requirements are defined | ||
run: | | ||
reqs=$(yarn explain peer-requirements) | ||
echo "$reqs" | grep '✘' || true | ||
echo "$reqs" | grep -q '✘' && exit 1 || exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"recommendations": ["arcanis.vscode-zipfs", "esbenp.prettier-vscode"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
{ | ||
"scripts": { | ||
"check:github-actions": "git ls-files '.github/**.yaml' | xargs -t -I {} action-validator {}", | ||
"check:npm:dedupe": "npm find-dupes", | ||
"check:yarn:dedupe": "yarn dedupe --check", | ||
"check:prettier": "prettier --check .", | ||
"check:pyright": "pyright", | ||
"check:renovateconfig": "npx --package=renovate -- renovate-config-validator --strict", | ||
"fix:prettier": "prettier --write ." | ||
"fix:prettier": "prettier --write --cache-location .prettiercache ." | ||
}, | ||
"private": true, | ||
"packageManager": "[email protected]", | ||
"engines": { | ||
"node": "^22.0.0" | ||
}, | ||
"devDependencies": { | ||
"@action-validator/cli": "0.6.0", | ||
"@action-validator/core": "0.6.0", | ||
"prettier": "3.4.2", | ||
"pyright": "1.1.391" | ||
} | ||
|
Oops, something went wrong.