diff --git a/package-lock.json b/package-lock.json index 77f7ba6b..d47590f2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,9 +5,9 @@ "requires": true, "dependencies": { "@actions/core": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.1.tgz", - "integrity": "sha512-xD+CQd9p4lU7ZfRqmUcbJpqR+Ss51rJRVeXMyOLrZQImN9/8Sy/BEUBnHO/UKD3z03R686PVTLfEPmkropGuLw==" + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.2.tgz", + "integrity": "sha512-IbCx7oefq+Gi6FWbSs2Fnw8VkEI6Y4gvjrYprY3RV//ksq/KPMlClOerJ4jRosyal6zkUIc8R9fS/cpRMlGClg==" }, "@babel/code-frame": { "version": "7.5.5", diff --git a/package.json b/package.json index e9ec2585..13109059 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ }, "homepage": "https://github.com/s4u/maven-settings-action#readme", "dependencies": { - "@actions/core": "^1.2.0", + "@actions/core": "^1.2.2", "xmldom": "^0.2.1", "xpath": "0.0.27" }, diff --git a/settings.test.js b/settings.test.js index c001d55c..bf83ebd2 100644 --- a/settings.test.js +++ b/settings.test.js @@ -244,7 +244,7 @@ test('cleanup - not generated', () => { expect(consoleOutput).toEqual( expect.arrayContaining([ - expect.stringMatching(/Cleanup maven setings: \..+\/\.m2\/settings.xml - file wasn\'t generated by action/) + expect.stringMatching(/Cleanup maven setings: \..+[\/\\]{1,2}\.m2[\/\\]{1,2}settings.xml - file wasn\'t generated by action/) ]) ); }) @@ -257,7 +257,7 @@ test('cleanup - not exist', () => { expect(consoleOutput).toEqual( expect.arrayContaining([ - expect.stringMatching(/::warning::Cleanup maven setings: \..+\/\.m2\/settings.xml - file not exist/) + expect.stringMatching(/::warning::Cleanup maven setings: \..+[\/\\]{1,2}\.m2[\/\\]{1,2}settings.xml - file not exist/) ]) ); }) @@ -271,7 +271,7 @@ test('cleanup - ok', () => { expect(consoleOutput).toEqual( expect.arrayContaining([ - expect.stringMatching(/Cleanup maven setings: \..+\/\.m2\/settings.xml - file was removed/) + expect.stringMatching(/Cleanup maven setings: \..+[\/\\]{1,2}\.m2[\/\\]{1,2}settings.xml - file was removed/) ]) ); expect(fs.existsSync(settingsPath)).not.toBeTruthy();