diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 30f95dc..db97cd3 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -12,16 +12,12 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Install dependencies - run: | - yarn --frozen-lockfile - - - name: Transpile and bundle test script - run: | - yarn webpack - + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16 + - run: npm ci + - run: npm start - name: Run local k6 test uses: grafana/k6-action@v0.2.0 with: diff --git a/README.md b/README.md index 498148d..2ff6b28 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ To generate a TypeScript project that includes the dependencies and initial conf Clone the generated repository on your local machine, move to the project root folder and install the dependencies defined in [`package.json`](./package.json) ```bash -$ yarn install +npm install ``` ## Running the test @@ -49,7 +49,7 @@ $ yarn install To run a test written in TypeScript, we first have to transpile the TypeScript code into JavaScript and bundle the project ```bash -$ yarn webpack +npm start ``` This command creates the final test files to the `./dist` folder. @@ -57,7 +57,7 @@ This command creates the final test files to the `./dist` folder. Once that is done, we can run our script the same way we usually do, for instance: ```bash -$ k6 run dist/get-200-status-test.js +k6 run dist/get-200-status-test.js ``` ## Writing own tests