Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 134
[C-3308] Enable common tests#6549
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
705dcc2b7cecf99d2539258dfa4d19a67df4c4dd8827174bfFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| { | ||
| "steps": [ | ||
| { | ||
| "name": "validate-ci-config", | ||
| "command": "npm run validate-ci-config" | ||
| } | ||
| ] | ||
| } |
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| common-init: | ||
| working_directory: ~/audius-protocol | ||
| docker: | ||
| - image: cimg/node:18.17 | ||
| steps: | ||
| - checkout | ||
| - attach_workspace: | ||
| at: ./ | ||
| - create_concatenated_patch_file: | ||
| filename: combined-patch-file.txt | ||
| - restore_cache: | ||
| keys: | ||
| - cache-{{ checksum "package-lock.json" }}-{{ checksum "combined-patch-file.txt" }} | ||
| - run: | ||
| name: lint & typecheck | ||
| command: | | ||
| npx turbo run verify --filter=@audius/common | ||
| - persist_to_workspace: | ||
| root: ./ | ||
| paths: | ||
| - node_modules | ||
| - packages/common/node_modules | ||
| - packages/common/dist | ||
| common-test: | ||
| working_directory: ~/audius-protocol | ||
| docker: | ||
| - image: cimg/node:18.17 | ||
| steps: | ||
| - checkout | ||
| - attach_workspace: | ||
| at: ./ | ||
| - run: | ||
| name: 'test' | ||
| command: | | ||
| npx turbo run test --filter=@audius/common |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| when: << pipeline.parameters.run-common-workflow >> | ||
| jobs: | ||
| - common-init: | ||
| context: | ||
| - Vercel | ||
| - common-test: | ||
| context: | ||
| - Vercel | ||
| requires: | ||
| - common-init | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| module.exports = { | ||
| presets: [ | ||
| ['@babel/preset-env', { targets: { node: 'current' } }], | ||
| '@babel/preset-typescript' | ||
| ] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -21,7 +21,9 @@ | ||
| "lint": "eslint --cache src", | ||
| "lint:fix": "npm run lint -- --fix", | ||
| "start": "rollup -c -w", | ||
| "typecheck": "tsc --noEmit" | ||
| "test": "jest", | ||
| "typecheck": "tsc --noEmit", | ||
| "verify": "concurrently \"npm:lint:fix\"" | ||
| }, | ||
| "bugs": { | ||
| "url": "https://github.com/AudiusProject/audius-client/issues" | ||
| @@ -60,12 +62,14 @@ | ||
| "@reduxjs/toolkit": "1.6.1", | ||
| "@rollup/plugin-image": "^2.1.1", | ||
| "@types/bn.js": "5.1.0", | ||
| "@types/jest": "29.5.7", | ||
| "@types/lodash": "4.14.149", | ||
| "@types/numeral": "^2.0.2", | ||
| "@types/react": "18.0.26", | ||
| "@types/react-redux": "7.1.7", | ||
| "@types/redux-saga": "0.10.5", | ||
| "eslint": "8.19.0", | ||
| "jest": "29.7.0", | ||
| "react": "18.2.0", | ||
| "rollup": "2.76.0", | ||
| "rollup-plugin-dts": "4.2.2", | ||
| @@ -80,5 +84,11 @@ | ||
| "@stripe/crypto": "0.0.4", | ||
| "react": "^18.2.0", | ||
| "redux-saga": "1.1.3" | ||
| }, | ||
| "jest": { | ||
| "moduleDirectories": [ | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh I was soooo close. This is the bit I was missing. | ||
| "node_modules", | ||
| "src" | ||
| ] | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's this for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We added
npm run validate-ci-configwhich generates this file