Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split runner #120

Merged
merged 5 commits into from
Feb 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 37 additions & 2 deletions .github/workflows/lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ jobs:
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-node-${{ matrix.node-version }}-yarn-dapp-${{ hashFiles('testnet-load-generator/yarn.lock', 'agoric-sdk/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
${{ runner.os }}-node-${{ matrix.node-version }}-yarn-dapp-

- name: Setup and link agoric-sdk packages
run: |
Expand All @@ -84,3 +84,38 @@ jobs:
- name: yarn test (everything)
run: yarn test
working-directory: testnet-load-generator

runner:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.18]
steps:
- name: Checkout runner
uses: actions/checkout@v2
with:
path: 'testnet-load-generator'
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-node-${{ matrix.node-version }}-yarn-runner-${{ hashFiles('testnet-load-generator/runner/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-${{ matrix.node-version }}-yarn-runner-

- name: yarn install
run: yarn install --frozen-lockfile
working-directory: testnet-load-generator/runner
- name: yarn lint
run: yarn lint
working-directory: testnet-load-generator/runner
- name: yarn test (everything)
run: yarn test
working-directory: testnet-load-generator/runner
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
"_agstate/agoric-servers",
"loadgen",
"loadgen/contract",
"loadgen/firebase/admin",
"runner"
"loadgen/firebase/admin"
],
"dependencies": {
"agoric": "*"
Expand Down
24 changes: 23 additions & 1 deletion runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,21 @@
"lint-fix:js": "eslint --fix ."
},
"devDependencies": {
"@endo/eslint-config": "^0.5.1",
"@types/node": "^16.9.1",
"@types/readline-transform": "^1.0.0",
"@types/yargs-parser": "^20.2.1",
"ava": "^3.13.0"
"@typescript-eslint/parser": "^5.30.7",
"ava": "^3.13.0",
"eslint": "^7.32.0",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-config-jessie": "^0.0.6",
"eslint-config-prettier": "^6.15.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsdoc": "^39.3.3",
"eslint-plugin-prettier": "^3.4.1",
"prettier": "^2.5.1",
"typescript": "~4.7.4"
},
"dependencies": {
"@endo/init": "^0.5.53",
Expand All @@ -38,7 +49,18 @@
"keywords": [],
"author": "Agoric",
"license": "Apache-2.0",
"prettier": {
"trailingComma": "all",
"singleQuote": true
},
"eslintConfig": {
"root": true,
"extends": [
"@endo"
],
"rules": {
"prettier/prettier": "off"
},
"globals": {
"console": "off"
}
Expand Down
Loading
Loading