Compare commits
	
		
			18 Commits
		
	
	
		
			testEnable
			...
			test-fast
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 47ad7e4077 | |||
| 64d30fb518 | |||
| 1a2d984507 | |||
| 7ca5bf5d35 | |||
| 72d1e4fdff | |||
| 8e70c71aee | |||
| 4d3516739c | |||
| 9c2f1a93d4 | |||
| 5df1ae880d | |||
| 45bb0b1552 | |||
| b32c91dfec | |||
| 7f8b9fe1f0 | |||
| 0ac93353cd | |||
| 051d7bc106 | |||
| 934cc8fa30 | |||
| 35dd74a1a0 | |||
| 869d93f182 | |||
| a848fb313f | 
@ -9,15 +9,14 @@
 | 
			
		||||
    "plugin:import/errors",
 | 
			
		||||
    "plugin:import/warnings",
 | 
			
		||||
    "plugin:import/typescript",
 | 
			
		||||
    "plugin:prettier/recommended",
 | 
			
		||||
    "prettier/@typescript-eslint"
 | 
			
		||||
    "plugin:prettier/recommended"
 | 
			
		||||
  ],
 | 
			
		||||
  "plugins": ["@typescript-eslint", "simple-import-sort", "jest"],
 | 
			
		||||
  "rules": {
 | 
			
		||||
    "import/first": "error",
 | 
			
		||||
    "import/newline-after-import": "error",
 | 
			
		||||
    "import/no-duplicates": "error",
 | 
			
		||||
    "simple-import-sort/sort": "error",
 | 
			
		||||
    "simple-import-sort/imports": "error",
 | 
			
		||||
    "sort-imports": "off"
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										1
									
								
								.gitattributes
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitattributes
									
									
									
									
										vendored
									
									
								
							@ -1 +1,2 @@
 | 
			
		||||
.licenses/** -diff linguist-generated=true
 | 
			
		||||
* text=auto eol=lf
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								.licenses/npm/@actions/cache.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								.licenses/npm/@actions/cache.dep.yml
									
									
									
										generated
									
									
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								.licenses/npm/@azure/core-http.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								.licenses/npm/@azure/core-http.dep.yml
									
									
									
										generated
									
									
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								.licenses/npm/@azure/core-lro.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								.licenses/npm/@azure/core-lro.dep.yml
									
									
									
										generated
									
									
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								.licenses/npm/@azure/core-paging.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								.licenses/npm/@azure/core-paging.dep.yml
									
									
									
										generated
									
									
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								.licenses/npm/@opentelemetry/api.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								.licenses/npm/@opentelemetry/api.dep.yml
									
									
									
										generated
									
									
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								.licenses/npm/@types/node.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								.licenses/npm/@types/node.dep.yml
									
									
									
										generated
									
									
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								.licenses/npm/node-fetch.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								.licenses/npm/node-fetch.dep.yml
									
									
									
										generated
									
									
									
								
							
										
											Binary file not shown.
										
									
								
							@ -34,6 +34,8 @@ Refer [here](https://github.com/actions/cache/blob/v1/README.md) for previous ve
 | 
			
		||||
### Pre-requisites
 | 
			
		||||
Create a workflow `.yml` file in your repositories `.github/workflows` directory. An [example workflow](#example-workflow) is available below. For more information, reference the GitHub Help Documentation for [Creating a workflow file](https://help.github.com/en/articles/configuring-a-workflow#creating-a-workflow-file).
 | 
			
		||||
 | 
			
		||||
If you are using this inside a container, a POSIX-compliant `tar` needs to be included and accessible in the execution path.
 | 
			
		||||
 | 
			
		||||
### Inputs
 | 
			
		||||
 | 
			
		||||
* `path` - A list of files, directories, and wildcard patterns to cache and restore. See [`@actions/glob`](https://github.com/actions/toolkit/tree/main/packages/glob) for supported patterns. 
 | 
			
		||||
 | 
			
		||||
@ -26,7 +26,7 @@ test("isGhes returns true if server url is not github.com", () => {
 | 
			
		||||
    }
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
test("isGhes returns true when server url is github.com", () => {
 | 
			
		||||
test("isGhes returns false when server url is github.com", () => {
 | 
			
		||||
    try {
 | 
			
		||||
        process.env["GITHUB_SERVER_URL"] = "http://github.com";
 | 
			
		||||
        expect(actionUtils.isGhes()).toBe(false);
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								actions-cache-1.0.9.tgz
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								actions-cache-1.0.9.tgz
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										2801
									
								
								dist/restore/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2801
									
								
								dist/restore/index.js
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										2801
									
								
								dist/save/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2801
									
								
								dist/save/index.js
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@ -17,7 +17,7 @@ const processStdoutWrite = process.stdout.write.bind(process.stdout);
 | 
			
		||||
process.stdout.write = (str, encoding, cb) => {
 | 
			
		||||
    // Core library will directly call process.stdout.write for commands
 | 
			
		||||
    // We don't want :: commands to be executed by the runner during tests
 | 
			
		||||
    if (!str.match(/^::/)) {
 | 
			
		||||
    if (!String(str).match(/^::/)) {
 | 
			
		||||
        return processStdoutWrite(str, encoding, cb);
 | 
			
		||||
    }
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										8776
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										8776
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										30
									
								
								package.json
									
									
									
									
									
								
							
							
						
						
									
										30
									
								
								package.json
									
									
									
									
									
								
							@ -23,29 +23,29 @@
 | 
			
		||||
  "author": "GitHub",
 | 
			
		||||
  "license": "MIT",
 | 
			
		||||
  "dependencies": {
 | 
			
		||||
    "@actions/cache": "^1.0.8",
 | 
			
		||||
    "@actions/cache": "file:actions-cache-1.0.9.tgz",
 | 
			
		||||
    "@actions/core": "^1.2.6",
 | 
			
		||||
    "@actions/exec": "^1.0.1",
 | 
			
		||||
    "@actions/io": "^1.1.0"
 | 
			
		||||
  },
 | 
			
		||||
  "devDependencies": {
 | 
			
		||||
    "@types/jest": "^24.0.13",
 | 
			
		||||
    "@types/jest": "^27.4.0",
 | 
			
		||||
    "@types/nock": "^11.1.0",
 | 
			
		||||
    "@types/node": "^12.20.7",
 | 
			
		||||
    "@typescript-eslint/eslint-plugin": "^2.7.0",
 | 
			
		||||
    "@typescript-eslint/parser": "^2.7.0",
 | 
			
		||||
    "@types/node": "^12.20.42",
 | 
			
		||||
    "@typescript-eslint/eslint-plugin": "^5.10.1",
 | 
			
		||||
    "@typescript-eslint/parser": "^5.10.1",
 | 
			
		||||
    "@zeit/ncc": "^0.20.5",
 | 
			
		||||
    "eslint": "^6.6.0",
 | 
			
		||||
    "eslint-config-prettier": "^6.15.0",
 | 
			
		||||
    "eslint-plugin-import": "^2.22.1",
 | 
			
		||||
    "eslint-plugin-jest": "^23.20.0",
 | 
			
		||||
    "eslint-plugin-prettier": "^3.3.1",
 | 
			
		||||
    "eslint-plugin-simple-import-sort": "^5.0.2",
 | 
			
		||||
    "jest": "^24.8.0",
 | 
			
		||||
    "jest-circus": "^24.7.1",
 | 
			
		||||
    "eslint": "^8.8.0",
 | 
			
		||||
    "eslint-config-prettier": "^8.3.0",
 | 
			
		||||
    "eslint-plugin-import": "^2.25.4",
 | 
			
		||||
    "eslint-plugin-jest": "^26.0.0",
 | 
			
		||||
    "eslint-plugin-prettier": "^4.0.0",
 | 
			
		||||
    "eslint-plugin-simple-import-sort": "^7.0.0",
 | 
			
		||||
    "jest": "^27.4.7",
 | 
			
		||||
    "jest-circus": "^27.4.6",
 | 
			
		||||
    "nock": "^11.7.0",
 | 
			
		||||
    "prettier": "^1.19.1",
 | 
			
		||||
    "ts-jest": "^26.5.4",
 | 
			
		||||
    "prettier": "^2.5.1",
 | 
			
		||||
    "ts-jest": "^27.1.3",
 | 
			
		||||
    "typescript": "^3.9.9"
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user