mirror of
				https://github.com/actions/cache.git
				synced 2025-11-04 13:29:10 +08:00 
			
		
		
		
	Generate build and fix format
This commit is contained in:
		@@ -216,7 +216,10 @@ test("getInputAsArray handles empty lines correctly", () => {
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
test("getInputAsArray sorts files correctly", () => {
 | 
			
		||||
    testUtils.setInput("foo", "bar\n!baz\nwaldo\nqux\nquux\ncorge\ngrault\ngarply");
 | 
			
		||||
    testUtils.setInput(
 | 
			
		||||
        "foo",
 | 
			
		||||
        "bar\n!baz\nwaldo\nqux\nquux\ncorge\ngrault\ngarply"
 | 
			
		||||
    );
 | 
			
		||||
    expect(actionUtils.getInputAsArray("foo")).toEqual([
 | 
			
		||||
        "!baz",
 | 
			
		||||
        "bar",
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										5
									
								
								dist/restore/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								dist/restore/index.js
									
									
									
									
										vendored
									
									
								
							@@ -37662,8 +37662,9 @@ function getInputAsArray(name, options) {
 | 
			
		||||
    return core
 | 
			
		||||
        .getInput(name, options)
 | 
			
		||||
        .split("\n")
 | 
			
		||||
        .map(s => s.trim())
 | 
			
		||||
        .filter(x => x !== "");
 | 
			
		||||
        .map(s => s.replace(/^\!\s+/, '!').trim())
 | 
			
		||||
        .filter(x => x !== "")
 | 
			
		||||
        .sort();
 | 
			
		||||
}
 | 
			
		||||
exports.getInputAsArray = getInputAsArray;
 | 
			
		||||
function getInputAsInt(name, options) {
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										5
									
								
								dist/save/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								dist/save/index.js
									
									
									
									
										vendored
									
									
								
							@@ -37662,8 +37662,9 @@ function getInputAsArray(name, options) {
 | 
			
		||||
    return core
 | 
			
		||||
        .getInput(name, options)
 | 
			
		||||
        .split("\n")
 | 
			
		||||
        .map(s => s.trim())
 | 
			
		||||
        .filter(x => x !== "");
 | 
			
		||||
        .map(s => s.replace(/^\!\s+/, '!').trim())
 | 
			
		||||
        .filter(x => x !== "")
 | 
			
		||||
        .sort();
 | 
			
		||||
}
 | 
			
		||||
exports.getInputAsArray = getInputAsArray;
 | 
			
		||||
function getInputAsInt(name, options) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user