-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow for running stress tests
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Lint, build, and run stress tests | ||
on: | ||
push: | ||
branches: [main, 231125-build-workflow-for-stress-tests] | ||
|
||
jobs: | ||
build-stress: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set Swap Space | ||
uses: pierotofy/set-swap-space@master | ||
with: | ||
swap-size-gb: 24 | ||
- name: Checkout the repository | ||
uses: actions/checkout@v3 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: '.nvmrc' | ||
- name: Install npm dependencies | ||
run: npm install | ||
- name: Run linter | ||
run: npm run lint-check | ||
- name: Run TypeScript compiler | ||
run: npm run build | ||
- name: Run tests | ||
run: npm test | ||
- name: Run stress tests | ||
run: npm run stress |