mirror of
https://github.com/astral-sh/setup-uv.git
synced 2025-02-24 01:25:24 +08:00
Run prettier (#78)
This commit is contained in:
parent
6343f7c79b
commit
9f1f1fece2
3
.github/workflows/test.yml
vendored
3
.github/workflows/test.yml
vendored
@ -21,6 +21,9 @@ jobs:
|
|||||||
npm install
|
npm install
|
||||||
- run: |
|
- run: |
|
||||||
npm run all
|
npm run all
|
||||||
|
- name: Make sure no changes from linters are detected
|
||||||
|
run: |
|
||||||
|
git diff --exit-code
|
||||||
test-default-version:
|
test-default-version:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
|
13
README.md
13
README.md
@ -71,9 +71,8 @@ the GitHub Actions Cache. This can speed up runs that reuse the cache by several
|
|||||||
|
|
||||||
> [!TIP]
|
> [!TIP]
|
||||||
>
|
>
|
||||||
> On self-hosted runners this is usually not needed since the cache generated by uv
|
> On self-hosted runners this is usually not needed since the cache generated by uv on the runner's
|
||||||
> on the runner's filesystem is not removed after a run.
|
> filesystem is not removed after a run. For more details see [Local cache path](#local-cache-path).
|
||||||
> For more details see [Local cache path](#local-cache-path).
|
|
||||||
|
|
||||||
You can optionally define a custom cache key suffix.
|
You can optionally define a custom cache key suffix.
|
||||||
|
|
||||||
@ -101,8 +100,7 @@ If you want to control when the cache is invalidated, specify a glob pattern wit
|
|||||||
`cache-dependency-glob` input. The cache will be invalidated if any file matching the glob pattern
|
`cache-dependency-glob` input. The cache will be invalidated if any file matching the glob pattern
|
||||||
changes. The glob matches files relative to the repository root.
|
changes. The glob matches files relative to the repository root.
|
||||||
|
|
||||||
> [!NOTE]
|
> [!NOTE] The default is `**/uv.lock`.
|
||||||
> The default is `**/uv.lock`.
|
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Define a cache dependency glob
|
- name: Define a cache dependency glob
|
||||||
@ -132,9 +130,8 @@ changes. The glob matches files relative to the repository root.
|
|||||||
|
|
||||||
### Local cache path
|
### Local cache path
|
||||||
|
|
||||||
This action controls where uv stores its cache on the runner's filesystem.
|
This action controls where uv stores its cache on the runner's filesystem. You can change the
|
||||||
You can change the default (`/tmp/setup-uv-cache`) by
|
default (`/tmp/setup-uv-cache`) by specifying the path with the `cache-local-path` input.
|
||||||
specifying the path with the `cache-local-path` input.
|
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Define a custom uv cache path
|
- name: Define a custom uv cache path
|
||||||
|
@ -19,8 +19,8 @@ inputs:
|
|||||||
default: "false"
|
default: "false"
|
||||||
cache-dependency-glob:
|
cache-dependency-glob:
|
||||||
description:
|
description:
|
||||||
'Glob pattern to match files relative to the repository root to control
|
"Glob pattern to match files relative to the repository root to control
|
||||||
the cache.'
|
the cache."
|
||||||
default: "**/uv.lock"
|
default: "**/uv.lock"
|
||||||
cache-suffix:
|
cache-suffix:
|
||||||
description: "Suffix for the cache key"
|
description: "Suffix for the cache key"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user