Skip to content

Commit 6676f66

Browse files
committed
Use npm in ci
1 parent f1396c3 commit 6676f66

File tree

4 files changed

+24
-24
lines changed

4 files changed

+24
-24
lines changed

.github/workflows/build_and_lint.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v3
1717
- name: Install
18-
run: yarn
18+
run: npm
1919
- name: Linting
20-
run: yarn lint
20+
run: npm run lint
2121
- name: Build on Ubuntu
22-
run: yarn build
22+
run: npm run build
2323
- name: All generated code is commited
2424
run: |
2525
git update-index --refresh
@@ -41,6 +41,6 @@ jobs:
4141
- name: NodeJS version
4242
run: node -v
4343
- name: Install
44-
run: yarn
44+
run: npm
4545
- name: Build
46-
run: yarn build
46+
run: npm run build

.github/workflows/test_ee.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ jobs:
4545
username: ${{ secrets.CLOUDSMITH_CICD_USER }}
4646
password: ${{ secrets.CLOUDSMITH_CICD_TOKEN }}
4747
- name: Install
48-
run: yarn
48+
run: npm
4949
- name: Build
50-
run: yarn build
50+
run: npm run build
5151
- name: Run Tests
52-
run: yarn test ${{ matrix.group.path }} --ci --run-in-band --forceExit
52+
run: npm run test ${{ matrix.group.path }} --ci --run-in-band --forceExit
5353
env:
5454
KURRENT_IMAGE: eventstore-ee:${{ env.KURRENT_VERSION }}
5555
EVENTSTORE_CLOUD_ID: ${{ secrets.EVENTSTORE_CLOUD_ID }}

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ jobs:
6161
- name: NodeJS version
6262
run: node -v
6363
- name: Install
64-
run: yarn
64+
run: npm
6565
- name: Build
66-
run: yarn build
66+
run: npm run build
6767
- name: Run Tests
68-
run: yarn test ${{ matrix.group.path }} --ci --run-in-band --forceExit
68+
run: npm run test ${{ matrix.group.path }} --ci --run-in-band --forceExit
6969
env:
7070
KURRENT_IMAGE: eventstore-ce:${{ inputs.version }}
7171
EVENTSTORE_CLOUD_ID: ${{ secrets.eventstore_cloud_id }}

CONTRIBUTING.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,65 +15,65 @@ Development is done on the `master` branch. We attempt to do our best to ensure
1515
```
1616
2. Install all necessary dependencies:
1717
```bash
18-
yarn install
18+
npm install
1919
```
2020
3. Build the project for the first time:
2121
```bash
22-
yarn build
22+
npm run build
2323
```
2424
In case of build errors, refresh your setup with:
2525
```bash
26-
npx lerna clean -y && yarn install
26+
npx lerna clean -y && npm run install
2727
```
2828

2929
## Development Practices
3030

3131
**Code Compilation:**
3232
- Standard Build:
3333
```bash
34-
yarn run build
34+
npm run build
3535
```
3636
- Continuous Build on Changes:
3737
```bash
38-
yarn run build:watch
38+
npm run build:watch
3939
```
4040

4141
**Testing and Linting:**
4242
- Run the complete test suite:
4343
```bash
44-
yarn run test
44+
npm run test
4545
```
4646
- Perform code style checks:
4747
```bash
48-
yarn run lint
48+
npm run lint
4949
```
5050

5151
### Tests
5252

5353
Tests are written using [Jest] and require [Docker] and [Docker Compose] to be installed. Then run test with:
5454

5555
```shell script
56-
yarn test
56+
npm run test
5757
```
5858

5959
Tests can be filtered by prepending the test file or folder to the command
6060

6161
```shell script
62-
$ yarn test connection // all connection tests
63-
$ yarn test ReadAll // only the ReadAll tests
62+
$ npm run test connection // all connection tests
63+
$ npm run test ReadAll // only the ReadAll tests
6464
```
6565

6666
To get debug information when running tests use the `test:debug` command.
6767

6868
```shell script
69-
$ yarn test:debug // debug all tests
70-
$ yarn test:debug ReadAll // only the ReadAll tests
69+
$ npm run test:debug // debug all tests
70+
$ npm run test:debug ReadAll // only the ReadAll tests
7171
```
7272

7373
Specific docker images can be specified via the enviroment variable `KURRENT_IMAGE`.
7474

7575
```shell script
76-
$ yarn cross-env KURRENT_IMAGE=77d63f3f0ab3 jest
76+
$ npx cross-env KURRENT_IMAGE=77d63f3f0ab3 jest
7777
```
7878

7979
See [Jest] documentation for more options.

0 commit comments

Comments
 (0)