Skip to content

Commit ad1954f

Browse files
committed
setup-resharper v2.0.0
1 parent 22ae238 commit ad1954f

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ jobs:
3333
- name: Setup ReSharper CTL
3434
uses: ./
3535
with:
36-
version: 2020.1
36+
version: 2021.2

LICENSE

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2020 Jozef Izso
3+
Copyright (c) 2020-2021 Jozef Izso
4+
Copyright (c) 2021 Kurt von Laven
45

56
Permission is hereby granted, free of charge, to any person obtaining a copy
67
of this software and associated documentation files (the "Software"), to deal

README.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,16 @@ steps:
1818
- uses: actions/checkout@master
1919
- uses: goit/setup-resharper@v1
2020
with:
21-
version: '2020.1'
21+
version: '2021.2'
2222
- run: InspectCode <solution file>
2323
```
2424
25+
## Note
26+
27+
Use `goit/setup-resharper@v1` for ReSharper CTL 2020.1 and older releases.
28+
29+
The download address changed and `goit/setup-resharper@v2` supports ReSharper CTL 2020.2 and newer.
30+
2531
## License
2632

27-
The scripts and documentation in this project are released under the [MIT License](LICENSE)
33+
Scripts and documentation in this project are released under the [MIT License](LICENSE)

dist/index.js

+3-10
Original file line numberDiff line numberDiff line change
@@ -5466,8 +5466,7 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
54665466
};
54675467

54685468

5469-
const IS_WINDOWS = process.platform === 'win32';
5470-
const RESHAPER_CTL_CACHE_NAME = 'resharper-ctl';
5469+
const RESHAPER_CTL_CACHE_NAME = 'v2-resharper-ctl';
54715470
function run() {
54725471
return __awaiter(this, void 0, void 0, function* () {
54735472
try {
@@ -5476,17 +5475,11 @@ function run() {
54765475
console.log('Checking tool cache');
54775476
let toolPath = _actions_tool_cache__WEBPACK_IMPORTED_MODULE_1__.find(RESHAPER_CTL_CACHE_NAME, version);
54785477
if (!toolPath) {
5479-
let url = '';
5480-
if (IS_WINDOWS) {
5481-
url = `https://download.jetbrains.com/resharper/ReSharperUltimate.${version}/JetBrains.ReSharper.CommandLineTools.${version}.zip`;
5482-
}
5483-
else {
5484-
url = `https://download.jetbrains.com/resharper/ReSharperUltimate.${version}/JetBrains.ReSharper.CommandLineTools.Unix.${version}.tar.gz`;
5485-
}
5478+
let url = `https://download.jetbrains.com/resharper/dotUltimate.${version}/JetBrains.ReSharper.CommandLineTools.${version}.zip`;
54865479
console.log('Downloading ReSharper CTL', url);
54875480
let downloadPath = yield _actions_tool_cache__WEBPACK_IMPORTED_MODULE_1__.downloadTool(url);
54885481
console.log('Extracting tools', downloadPath);
5489-
let extPath = IS_WINDOWS ? yield _actions_tool_cache__WEBPACK_IMPORTED_MODULE_1__.extractZip(downloadPath) : yield _actions_tool_cache__WEBPACK_IMPORTED_MODULE_1__.extractTar(downloadPath);
5482+
let extPath = yield _actions_tool_cache__WEBPACK_IMPORTED_MODULE_1__.extractZip(downloadPath);
54905483
console.log('Caching tools');
54915484
let cachedDir = yield _actions_tool_cache__WEBPACK_IMPORTED_MODULE_1__.cacheDir(extPath, RESHAPER_CTL_CACHE_NAME, version);
54925485
toolPath = cachedDir;

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "setup-resharper",
3-
"version": "1.1.0",
3+
"version": "2.0.0",
44
"private": true,
55
"description": "Setup ReSharper Command Line Tools in GitHub Action",
66
"main": "src/setup-resharper.ts",

src/setup-resharper.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as core from '@actions/core';
22
import * as tc from '@actions/tool-cache';
33

4-
const RESHAPER_CTL_CACHE_NAME = 'v1-resharper-ctl';
4+
const RESHAPER_CTL_CACHE_NAME = 'v2-resharper-ctl';
55

66
async function run() {
77
try {

0 commit comments

Comments
 (0)