Skip to content

Commit 4de61c7

Browse files
authored
Merge branch 'master' into rename-config
2 parents 64da6c7 + b80f636 commit 4de61c7

File tree

8 files changed

+2398
-11702
lines changed

8 files changed

+2398
-11702
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,21 @@ jobs:
1111
- uses: actions/setup-node@v1
1212
with:
1313
node-version: 14
14-
- run: npm ci
14+
- run: yarn install --immutable --immutable-cache --check-cache
1515
- name: Publish to Visual Studio Marketplace
1616
id: publishToVSMarketplace
1717
uses: HaaLeo/publish-vscode-extension@v0
1818
with:
1919
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
2020
registryUrl: https://marketplace.visualstudio.com
21+
yarn: true
2122
- name: Publish to Open VSX Registry
2223
id: publishToOpenVSX
2324
continue-on-error: true
2425
uses: HaaLeo/publish-vscode-extension@v0
2526
with:
2627
pat: ${{ secrets.OPEN_VSX_TOKEN }}
28+
yarn: true
2729
- name: Upload extension vsix to workflow artifacts
2830
uses: actions/upload-artifact@v2
2931
with:

.github/workflows/test.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ jobs:
2929
uses: haskell/actions/setup@v1
3030
with:
3131
ghc-version: ${{ matrix.ghc }}
32-
run: xvfb-run -s '-screen 0 640x480x16' -a npm test
3332
- name: "Install `tree` for MacOs"
3433
run: |
3534
brew update
@@ -52,13 +51,13 @@ jobs:
5251
shell: bash
5352
5453
# Install test dependencies
55-
- run: npm ci
56-
- run: npm run webpack
54+
- run: yarn install --immutable --immutable-cache --check-cache
55+
- run: yarn run webpack
5756

5857
# Run the tests
59-
- run: xvfb-run -s '-screen 0 640x480x16' -a npm test
58+
- run: xvfb-run -s '-screen 0 640x480x16' -a yarn run test
6059
if: runner.os == 'Linux'
61-
- run: npm test
60+
- run: yarn run test
6261
if: runner.os != 'Linux'
6362

6463
# Upload test artefacts

Contributing.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
## Dependencies and Building
44

5-
Run `npm install` in the project root to install the development dependencies.
5+
Run `yarn install` in the project root to install the development dependencies.
66

77
You can also package up the extension with
88

9-
- `npm install -g vsce` to get the Extension Manager,
10-
- `npm install` to build the extension
9+
- `yarn global add vsce` to get the Extension Manager,
10+
- `yarn install` to build the extension
1111
- `vsce package` which creates an extension package at `haskell-<version>.vsix`.
1212

13-
_Note:_ that if you get errors running `vsce package`, it might help running `tsc -p ./` directly, since that gives the actual error output of the TypeScript compilation.
13+
_Note:_ that if you get errors running `vsce package`, it might help running `yarn run pretest` directly, since that gives the actual error output of the TypeScript compilation.
1414

1515
## Developing inside VS Code
1616

@@ -29,7 +29,7 @@ _Note_: you can also reload (`Ctrl+R` or `Cmd+R` on macOS) the VS Code window wi
2929

3030
#### Formatting
3131

32-
[prettier](https://prettier.io) is automatically run o neach commit via husky. If you are developing within VS Code, the settings are set to auto format on save.
32+
[prettier](https://prettier.io) is automatically run on each commit via husky. If you are developing within VS Code, the settings are set to auto format on save.
3333
The configurations for prettier are located in `.prettierrc`.
3434

3535
## Navigating the Files

0 commit comments

Comments
 (0)