@@ -22,18 +22,12 @@ jobs: | |||||
python -m pip install -r requirements.txt | python -m pip install -r requirements.txt | ||||
python manage.py test | python manage.py test | ||||
test-site: | test-site: | ||||
name: Node.js ${{ matrix.node-version }} | |||||
runs-on: ubuntu-18.04 | runs-on: ubuntu-18.04 | ||||
strategy: | |||||
matrix: | |||||
node-version: | |||||
- "14" | |||||
- "16" | |||||
steps: | steps: | ||||
- uses: actions/checkout@v2 | - uses: actions/checkout@v2 | ||||
- uses: actions/setup-node@v2 | - uses: actions/setup-node@v2 | ||||
with: | with: | ||||
node-version: ${{ matrix.node-version }} | |||||
node-version: "14" | |||||
- run: yarn install | - run: yarn install | ||||
- run: yarn workspace lesspass-site run test | - run: yarn workspace lesspass-site run test | ||||
test-integration: | test-integration: | ||||
@@ -7,6 +7,7 @@ on: | |||||
- completed | - completed | ||||
jobs: | jobs: | ||||
publish: | publish: | ||||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |||||
runs-on: ubuntu-18.04 | runs-on: ubuntu-18.04 | ||||
steps: | steps: | ||||
- uses: actions/checkout@v2 | - uses: actions/checkout@v2 | ||||
@@ -16,7 +17,9 @@ jobs: | |||||
registry-url: "https://registry.npmjs.org" | registry-url: "https://registry.npmjs.org" | ||||
- run: yarn install | - run: yarn install | ||||
- run: yarn workspace lesspass-crypto run build | - run: yarn workspace lesspass-crypto run build | ||||
- run: yarn workspace lesspass-crypto run publish | |||||
- run: | | |||||
cd packages/lesspass-crypto | |||||
yarn publish --non-interactive | |||||
continue-on-error: true | continue-on-error: true | ||||
env: | env: | ||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
@@ -8,17 +8,11 @@ on: | |||||
- "packages/lesspass-crypto/**" | - "packages/lesspass-crypto/**" | ||||
jobs: | jobs: | ||||
test: | test: | ||||
name: Node.js ${{ matrix.node-version }} | |||||
runs-on: ubuntu-18.04 | runs-on: ubuntu-18.04 | ||||
strategy: | |||||
matrix: | |||||
node-version: | |||||
- "14" | |||||
- "16" | |||||
steps: | steps: | ||||
- uses: actions/checkout@v2 | - uses: actions/checkout@v2 | ||||
- uses: actions/setup-node@v2 | - uses: actions/setup-node@v2 | ||||
with: | with: | ||||
node-version: ${{ matrix.node-version }} | |||||
node-version: "14" | |||||
- run: yarn install | - run: yarn install | ||||
- run: yarn workspace lesspass-crypto run test | - run: yarn workspace lesspass-crypto run test |
@@ -7,6 +7,7 @@ on: | |||||
- completed | - completed | ||||
jobs: | jobs: | ||||
publish: | publish: | ||||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |||||
runs-on: ubuntu-18.04 | runs-on: ubuntu-18.04 | ||||
steps: | steps: | ||||
- uses: actions/checkout@v2 | - uses: actions/checkout@v2 | ||||
@@ -15,7 +16,9 @@ jobs: | |||||
node-version: "14" | node-version: "14" | ||||
registry-url: "https://registry.npmjs.org" | registry-url: "https://registry.npmjs.org" | ||||
- run: yarn install | - run: yarn install | ||||
- run: yarn workspace lesspass-entropy run publish | |||||
- run: | | |||||
cd packages/lesspass-entropy | |||||
yarn publish --non-interactive | |||||
continue-on-error: true | continue-on-error: true | ||||
env: | env: | ||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
@@ -8,17 +8,12 @@ on: | |||||
- "packages/lesspass-entropy/**" | - "packages/lesspass-entropy/**" | ||||
jobs: | jobs: | ||||
test: | test: | ||||
name: Node.js ${{ matrix.node-version }} | |||||
runs-on: ubuntu-18.04 | runs-on: ubuntu-18.04 | ||||
strategy: | |||||
matrix: | |||||
node-version: | |||||
- "14" | |||||
- "16" | |||||
steps: | steps: | ||||
- uses: actions/checkout@v2 | - uses: actions/checkout@v2 | ||||
- uses: actions/setup-node@v2 | - uses: actions/setup-node@v2 | ||||
with: | with: | ||||
node-version: ${{ matrix.node-version }} | |||||
node-version: "14" | |||||
- run: yarn install | - run: yarn install | ||||
- run: yarn workspace lesspass-crypto run build | |||||
- run: yarn workspace lesspass-entropy run test | - run: yarn workspace lesspass-entropy run test |
@@ -7,6 +7,7 @@ on: | |||||
- completed | - completed | ||||
jobs: | jobs: | ||||
publish: | publish: | ||||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |||||
runs-on: ubuntu-18.04 | runs-on: ubuntu-18.04 | ||||
steps: | steps: | ||||
- uses: actions/checkout@v2 | - uses: actions/checkout@v2 | ||||
@@ -15,8 +16,9 @@ jobs: | |||||
node-version: "14" | node-version: "14" | ||||
registry-url: "https://registry.npmjs.org" | registry-url: "https://registry.npmjs.org" | ||||
- run: yarn install | - run: yarn install | ||||
- run: yarn workspace lesspass-fingerprint run build | |||||
- run: yarn workspace lesspass-fingerprint run publish | |||||
- run: | | |||||
cd packages/lesspass-fingerprint | |||||
yarn publish --non-interactive | |||||
continue-on-error: true | continue-on-error: true | ||||
env: | env: | ||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
@@ -8,17 +8,13 @@ on: | |||||
- "packages/lesspass-fingerprint/**" | - "packages/lesspass-fingerprint/**" | ||||
jobs: | jobs: | ||||
test: | test: | ||||
name: Node.js ${{ matrix.node-version }} | |||||
runs-on: ubuntu-18.04 | runs-on: ubuntu-18.04 | ||||
strategy: | |||||
matrix: | |||||
node-version: | |||||
- "14" | |||||
- "16" | |||||
steps: | steps: | ||||
- uses: actions/checkout@v2 | - uses: actions/checkout@v2 | ||||
- uses: actions/setup-node@v2 | - uses: actions/setup-node@v2 | ||||
with: | with: | ||||
node-version: ${{ matrix.node-version }} | |||||
node-version: "14" | |||||
registry-url: "https://registry.npmjs.org" | |||||
- run: yarn install | - run: yarn install | ||||
- run: yarn workspace lesspass-crypto run build | |||||
- run: yarn workspace lesspass-fingerprint run test | - run: yarn workspace lesspass-fingerprint run test |
@@ -7,6 +7,7 @@ on: | |||||
- completed | - completed | ||||
jobs: | jobs: | ||||
publish: | publish: | ||||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |||||
runs-on: ubuntu-18.04 | runs-on: ubuntu-18.04 | ||||
steps: | steps: | ||||
- uses: actions/checkout@v2 | - uses: actions/checkout@v2 | ||||
@@ -15,7 +16,9 @@ jobs: | |||||
node-version: "14" | node-version: "14" | ||||
registry-url: "https://registry.npmjs.org" | registry-url: "https://registry.npmjs.org" | ||||
- run: yarn install | - run: yarn install | ||||
- run: yarn workspace lesspass run publish | |||||
- run: | | |||||
cd packages/lesspass | |||||
yarn publish --non-interactive | |||||
continue-on-error: true | continue-on-error: true | ||||
env: | env: | ||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
@@ -7,6 +7,7 @@ on: | |||||
- completed | - completed | ||||
jobs: | jobs: | ||||
publish: | publish: | ||||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |||||
runs-on: ubuntu-18.04 | runs-on: ubuntu-18.04 | ||||
steps: | steps: | ||||
- uses: actions/checkout@v2 | - uses: actions/checkout@v2 | ||||
@@ -15,8 +16,11 @@ jobs: | |||||
node-version: "14" | node-version: "14" | ||||
registry-url: "https://registry.npmjs.org" | registry-url: "https://registry.npmjs.org" | ||||
- run: yarn install | - run: yarn install | ||||
- run: yarn workspace lesspass-crypto run build | |||||
- run: yarn workspace lesspass-pure run build | - run: yarn workspace lesspass-pure run build | ||||
- run: yarn workspace lesspass-pure run publish | |||||
- run: | | |||||
cd packages/lesspass-pure | |||||
yarn publish --non-interactive | |||||
continue-on-error: true | continue-on-error: true | ||||
env: | env: | ||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
@@ -8,17 +8,12 @@ on: | |||||
- "packages/lesspass-pure/**" | - "packages/lesspass-pure/**" | ||||
jobs: | jobs: | ||||
test: | test: | ||||
name: Node.js ${{ matrix.node-version }} | |||||
runs-on: ubuntu-18.04 | runs-on: ubuntu-18.04 | ||||
strategy: | |||||
matrix: | |||||
node-version: | |||||
- "14" | |||||
- "16" | |||||
steps: | steps: | ||||
- uses: actions/checkout@v2 | - uses: actions/checkout@v2 | ||||
- uses: actions/setup-node@v2 | - uses: actions/setup-node@v2 | ||||
with: | with: | ||||
node-version: ${{ matrix.node-version }} | |||||
node-version: "14" | |||||
- run: yarn install | - run: yarn install | ||||
- run: yarn workspace lesspass-crypto run build | |||||
- run: yarn workspace lesspass-pure run test | - run: yarn workspace lesspass-pure run test |
@@ -7,6 +7,7 @@ on: | |||||
- completed | - completed | ||||
jobs: | jobs: | ||||
publish: | publish: | ||||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |||||
runs-on: ubuntu-18.04 | runs-on: ubuntu-18.04 | ||||
steps: | steps: | ||||
- uses: actions/checkout@v2 | - uses: actions/checkout@v2 | ||||
@@ -15,7 +16,9 @@ jobs: | |||||
node-version: "14" | node-version: "14" | ||||
registry-url: "https://registry.npmjs.org" | registry-url: "https://registry.npmjs.org" | ||||
- run: yarn install | - run: yarn install | ||||
- run: yarn workspace lesspass-render-password run publish | |||||
- run: | | |||||
cd packages/lesspass-render-password | |||||
yarn publish --non-interactive | |||||
continue-on-error: true | continue-on-error: true | ||||
env: | env: | ||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
@@ -8,17 +8,11 @@ on: | |||||
- "packages/lesspass-render-password/**" | - "packages/lesspass-render-password/**" | ||||
jobs: | jobs: | ||||
test: | test: | ||||
name: Node.js ${{ matrix.node-version }} | |||||
runs-on: ubuntu-18.04 | runs-on: ubuntu-18.04 | ||||
strategy: | |||||
matrix: | |||||
node-version: | |||||
- "14" | |||||
- "16" | |||||
steps: | steps: | ||||
- uses: actions/checkout@v2 | - uses: actions/checkout@v2 | ||||
- uses: actions/setup-node@v2 | - uses: actions/setup-node@v2 | ||||
with: | with: | ||||
node-version: ${{ matrix.node-version }} | |||||
node-version: "14" | |||||
- run: yarn install | - run: yarn install | ||||
- run: yarn workspace lesspass-render-password run test | - run: yarn workspace lesspass-render-password run test |
@@ -8,17 +8,11 @@ on: | |||||
- "packages/lesspass/**" | - "packages/lesspass/**" | ||||
jobs: | jobs: | ||||
test: | test: | ||||
name: Node.js ${{ matrix.node-version }} | |||||
runs-on: ubuntu-18.04 | runs-on: ubuntu-18.04 | ||||
strategy: | |||||
matrix: | |||||
node-version: | |||||
- "14" | |||||
- "16" | |||||
steps: | steps: | ||||
- uses: actions/checkout@v2 | - uses: actions/checkout@v2 | ||||
- uses: actions/setup-node@v2 | - uses: actions/setup-node@v2 | ||||
with: | with: | ||||
node-version: ${{ matrix.node-version }} | |||||
node-version: "14" | |||||
- run: yarn install | - run: yarn install | ||||
- run: yarn workspace lesspass run test | - run: yarn workspace lesspass run test |
@@ -7,6 +7,7 @@ on: | |||||
- completed | - completed | ||||
jobs: | jobs: | ||||
publish: | publish: | ||||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |||||
runs-on: ubuntu-18.04 | runs-on: ubuntu-18.04 | ||||
steps: | steps: | ||||
- uses: actions/checkout@v2 | - uses: actions/checkout@v2 | ||||
@@ -14,9 +15,8 @@ jobs: | |||||
with: | with: | ||||
node-version: "14" | node-version: "14" | ||||
- run: yarn install | - run: yarn install | ||||
- run: yarn --version | |||||
- run: ls packages/lesspass-web-extension/node_modules | |||||
- run: ls packages/lesspass-web-extension/node_modules/lesspass-pure | |||||
- run: yarn workspace lesspass-crypto run build | |||||
- run: yarn workspace lesspass-pure run build | |||||
- run: yarn workspace lesspass-web-extension run build | - run: yarn workspace lesspass-web-extension run build | ||||
- run: yarn workspace lesspass-web-extension run release | - run: yarn workspace lesspass-web-extension run release | ||||
continue-on-error: true | continue-on-error: true | ||||
@@ -8,17 +8,11 @@ on: | |||||
- "packages/lesspass-web-extension/**" | - "packages/lesspass-web-extension/**" | ||||
jobs: | jobs: | ||||
test: | test: | ||||
name: Node.js ${{ matrix.node-version }} | |||||
runs-on: ubuntu-18.04 | runs-on: ubuntu-18.04 | ||||
strategy: | |||||
matrix: | |||||
node-version: | |||||
- "14" | |||||
- "16" | |||||
steps: | steps: | ||||
- uses: actions/checkout@v2 | - uses: actions/checkout@v2 | ||||
- uses: actions/setup-node@v2 | - uses: actions/setup-node@v2 | ||||
with: | with: | ||||
node-version: ${{ matrix.node-version }} | |||||
node-version: "14" | |||||
- run: yarn install | - run: yarn install | ||||
- run: yarn workspace lesspass-web-extension run test | - run: yarn workspace lesspass-web-extension run test |
@@ -10,8 +10,7 @@ | |||||
"packages/*" | "packages/*" | ||||
], | ], | ||||
"nohoist": [ | "nohoist": [ | ||||
"**/lesspass-pure", | |||||
"**/lesspass-pure/**" | |||||
"**/lesspass-pure" | |||||
] | ] | ||||
}, | }, | ||||
"devDependencies": { | "devDependencies": { | ||||
@@ -12,7 +12,7 @@ | |||||
"./src/pbkdf2.js": "./src/pbkdf2.browser.js" | "./src/pbkdf2.js": "./src/pbkdf2.browser.js" | ||||
}, | }, | ||||
"scripts": { | "scripts": { | ||||
"test": "npm run test:unit && npm run test:browser", | |||||
"test": "yarn test:unit && yarn test:browser", | |||||
"test:unit": "mocha test --recursive", | "test:unit": "mocha test --recursive", | ||||
"test:browser": "karma start test/karma.conf.js" | "test:browser": "karma start test/karma.conf.js" | ||||
}, | }, | ||||
@@ -12,7 +12,7 @@ | |||||
"./src/hmac.js": "./src/hmac.browser.js" | "./src/hmac.js": "./src/hmac.browser.js" | ||||
}, | }, | ||||
"scripts": { | "scripts": { | ||||
"test": "npm run test:unit && npm run test:browser", | |||||
"test": "yarn test:unit && yarn test:browser", | |||||
"test:unit": "mocha test --recursive", | "test:unit": "mocha test --recursive", | ||||
"test:browser": "karma start test/karma.conf.js" | "test:browser": "karma start test/karma.conf.js" | ||||
}, | }, | ||||
@@ -10,7 +10,7 @@ | |||||
"i18n:build": "node src/i18n/build.js", | "i18n:build": "node src/i18n/build.js", | ||||
"i18n:translate": "node src/i18n/translate.js", | "i18n:translate": "node src/i18n/translate.js", | ||||
"prettier": "prettier --write 'src/**/*'", | "prettier": "prettier --write 'src/**/*'", | ||||
"test": "npm run test:unit && npm run test:e2e", | |||||
"test": "yarn test:unit && yarn test:e2e", | |||||
"test:watch": "jest --watch", | "test:watch": "jest --watch", | ||||
"test:unit": "vue-cli-service test:unit", | "test:unit": "vue-cli-service test:unit", | ||||
"test:e2e": "vue-cli-service test:e2e --headless", | "test:e2e": "vue-cli-service test:e2e --headless", | ||||
@@ -2,7 +2,7 @@ | |||||
## Verify the web extension | ## Verify the web extension | ||||
The web extension is just a wrapper around lesspass-pure on npm. | |||||
The web extension is just a wrapper around lesspass-pure node module. | |||||
Source file correspond to the zip downloaded on http://github.com/lesspass/lesspass/archive/${sha256}.zip. | Source file correspond to the zip downloaded on http://github.com/lesspass/lesspass/archive/${sha256}.zip. | ||||
{sha256} is the git sha256 use when build was done. | {sha256} is the git sha256 use when build was done. | ||||
@@ -8,7 +8,7 @@ | |||||
"start": "cd extension && web-ext run", | "start": "cd extension && web-ext run", | ||||
"build": "rm -rf ./extension/dist && mkdir ./extension/dist && cp -r ./node_modules/lesspass-pure/dist/ ./extension", | "build": "rm -rf ./extension/dist && mkdir ./extension/dist && cp -r ./node_modules/lesspass-pure/dist/ ./extension", | ||||
"test": "echo 0", | "test": "echo 0", | ||||
"release": "npm run release:amo && npm run release:cws", | |||||
"release": "yarn release:amo && yarn release:cws", | |||||
"release:amo": "cd extension && web-ext-submit", | "release:amo": "cd extension && web-ext-submit", | ||||
"release:cws": "cd extension && webstore upload --auto-publish" | "release:cws": "cd extension && webstore upload --auto-publish" | ||||
}, | }, | ||||