mirror of
https://github.com/actions/cache.git
synced 2024-11-22 10:57:15 +08:00
Fix lint on Windows (#89)
This commit is contained in:
parent
fb50aa45ec
commit
4657a5f525
2
.github/workflows/workflow.yml
vendored
2
.github/workflows/workflow.yml
vendored
@ -32,11 +32,9 @@ jobs:
|
|||||||
- run: npm ci
|
- run: npm ci
|
||||||
|
|
||||||
- name: Prettier Format Check
|
- name: Prettier Format Check
|
||||||
if: matrix.os == 'ubuntu-latest'
|
|
||||||
run: npm run format-check
|
run: npm run format-check
|
||||||
|
|
||||||
- name: ESLint Check
|
- name: ESLint Check
|
||||||
if: matrix.os == 'ubuntu-latest'
|
|
||||||
run: npm run lint
|
run: npm run lint
|
||||||
|
|
||||||
- name: Build & Test
|
- name: Build & Test
|
||||||
|
@ -7,9 +7,9 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
"test": "tsc --noEmit && jest --coverage",
|
"test": "tsc --noEmit && jest --coverage",
|
||||||
"lint": "eslint '**/*.ts' --cache",
|
"lint": "eslint **/*.ts --cache",
|
||||||
"format": "prettier --write '**/*.ts'",
|
"format": "prettier --write **/*.ts",
|
||||||
"format-check": "prettier --check '**/*.ts'",
|
"format-check": "prettier --check **/*.ts",
|
||||||
"release": "ncc build -o dist/restore src/restore.ts && ncc build -o dist/save src/save.ts && git add -f dist/"
|
"release": "ncc build -o dist/restore src/restore.ts && ncc build -o dist/save src/save.ts && git add -f dist/"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
@ -1,15 +1,14 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-namespace */
|
export enum Inputs {
|
||||||
export namespace Inputs {
|
Key = "key",
|
||||||
export const Key = "key";
|
Path = "path",
|
||||||
export const Path = "path";
|
RestoreKeys = "restore-keys"
|
||||||
export const RestoreKeys = "restore-keys";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export namespace Outputs {
|
export enum Outputs {
|
||||||
export const CacheHit = "cache-hit";
|
CacheHit = "cache-hit"
|
||||||
}
|
}
|
||||||
|
|
||||||
export namespace State {
|
export enum State {
|
||||||
export const CacheKey = "CACHE_KEY";
|
CacheKey = "CACHE_KEY",
|
||||||
export const CacheResult = "CACHE_RESULT";
|
CacheResult = "CACHE_RESULT"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user