Fix lint #451
Workflow file for this run
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
--- | |
name: CI | |
on: push | |
jobs: | |
build: | |
uses: ./.github/workflows/js.yml | |
with: | |
subcommands: | | |
python3 scripts/download_wasm.py | |
npm install | |
build_in_docker: | |
uses: ./.github/workflows/js_in_docker.yml | |
with: | |
subcommands: | | |
python3 scripts/download_wasm.py | |
npm install | |
kms-version: develop | |
findex-cloud-version: 0.1.0 | |
lint: | |
needs: build | |
uses: ./.github/workflows/js.yml | |
with: | |
subcommands: | | |
npm run prettier:check | |
npm run lint | |
test: | |
needs: build_in_docker | |
uses: ./.github/workflows/js_in_docker.yml | |
with: | |
subcommands: | | |
npm test | |
kms-version: develop | |
kms-jwe-key: '{"kty": "OKP","d": "MPEVJwdRqGM_qhJOUb5hR0Xr9EvwMLZGnkf-eDj5fU8","use": "enc","crv": "X25519","kid": "DX3GC+Fx3etxfRJValQNbqaB0gs=","x": "gdF-1TtAjsFqNWr9nwhGUlFG38qrDUqYgcILgtYrpTY","alg": "ECDH-ES"}' | |
findex-cloud-version: 0.1.0 | |
regression_files: | | |
./node_modules/non_regression_vector.json | |
./node_modules/sqlite.db | |
cloudproof_java: | |
needs: test | |
uses: Cosmian/reusable_workflows/.github/workflows/cloudproof_java_in_docker.yml@develop | |
with: | |
branch: v6.0.0 | |
target: x86_64-unknown-linux-gnu | |
extension: so | |
destination: linux-x86-64 | |
os: ubuntu-20.04 | |
kms-version: develop | |
findex-cloud-version: 0.1.0 | |
copy_fresh_build: false | |
copy_regression_files: | | |
cp ./cloudproof_js/non_regression_vector.json src/test/resources/cover_crypt/non_regression/js_non_regression_vector.json | |
cp ./cloudproof_js/sqlite.db src/test/resources/findex/non_regression/js_sqlite.db | |
cloudproof_python: | |
needs: | |
- test | |
uses: Cosmian/reusable_workflows/.github/workflows/cloudproof_python.yml@develop | |
with: | |
branch: v4.0.2 | |
target: x86_64-unknown-linux-gnu | |
kms-version: develop | |
copy_fresh_build: false | |
copy_regression_files: | | |
cp ./cloudproof_js/non_regression_vector.json tests/data/cover_crypt/non_regression/js_non_regression_vector.json | |
cp ./cloudproof_js/sqlite.db tests/data/findex/non_regression/js_sqlite.db | |
cloudproof_flutter: | |
needs: | |
- test | |
uses: Cosmian/reusable_workflows/.github/workflows/cloudproof_flutter.yml@develop | |
with: | |
branch: v7.0.0 | |
target: x86_64-unknown-linux-gnu | |
extension: so | |
copy_fresh_build: false | |
copy_regression_files: | | |
cp ./cloudproof_js/non_regression_vector.json test/resources/cover_crypt/non_regression/js_non_regression_vector.json | |
cp ./cloudproof_js/sqlite.db test/resources/findex/non_regression/js_sqlite.db | |
example_vuejs: | |
needs: build_in_docker | |
uses: ./.github/workflows/js_in_docker.yml | |
with: | |
subcommands: | | |
cd examples/vuejs | |
npm install | |
npm run build | |
npm run serve -- --port 8090 & | |
sleep 5 | |
cd ../test | |
node chrome.mjs http://localhost:8090 http://kms:9998 | |
kms-version: develop | |
findex-cloud-version: 0.1.0 | |
example_reactjs: | |
needs: build_in_docker | |
uses: ./.github/workflows/js_in_docker.yml | |
with: | |
subcommands: | | |
cd examples/reactjs | |
npm install | |
npm run build | |
npm run serve -- --port 8090 & | |
sleep 5 | |
cd ../test | |
node chrome.mjs http://localhost:8090 http://kms:9998 | |
kms-version: develop | |
findex-cloud-version: 0.1.0 | |
example_browser: | |
needs: build_in_docker | |
uses: ./.github/workflows/js_in_docker.yml | |
with: | |
subcommands: | | |
cd examples/browser | |
npm install | |
python3 -m http.server & | |
sleep 3 | |
node test.mjs | |
kms-version: develop | |
findex-cloud-version: 0.1.0 | |
example_webpack: | |
needs: build | |
uses: ./.github/workflows/js.yml | |
with: | |
subcommands: | | |
cd examples/webpack | |
npm install | |
npx webpack | |
example_nodejs: | |
needs: build_in_docker | |
uses: ./.github/workflows/js_in_docker.yml | |
with: | |
subcommands: | | |
cd examples/nodejs | |
npm install | |
node test.mjs 10 | |
kms-version: develop | |
findex-cloud-version: 0.1.0 | |
example_imdb: | |
needs: build | |
uses: ./.github/workflows/js.yml | |
with: | |
subcommands: | | |
cd examples/nodejs_search_imdb | |
curl https://datasets.imdbws.com/title.basics.tsv.gz --output imdb.tsv.gz | |
gzip -d imdb.tsv.gz | |
npm install | |
node test.mjs | |
example_full_text_search: | |
needs: build | |
uses: ./.github/workflows/js.yml | |
with: | |
subcommands: | | |
cd examples/full_text_search | |
npm install | |
node test.mjs | |
publish-dry-run: | |
needs: | |
- lint | |
- cloudproof_java | |
- cloudproof_flutter | |
- cloudproof_python | |
- example_imdb | |
- example_full_text_search | |
- example_nodejs | |
- example_webpack | |
- example_reactjs | |
- example_vuejs | |
- example_browser | |
uses: ./.github/workflows/js.yml | |
with: | |
subcommands: | | |
echo "//registry.npmjs.org/:_authToken=$NPM_ACCESS_TOKEN" > ~/.npmrc | |
npm publish --dry-run | |
secrets: inherit | |
publish: | |
needs: | |
- publish-dry-run | |
uses: ./.github/workflows/js.yml | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
subcommands: | | |
echo "//registry.npmjs.org/:_authToken=$NPM_ACCESS_TOKEN" > ~/.npmrc | |
npm publish | |
secrets: inherit | |
release: | |
needs: | |
- publish-dry-run | |
name: release | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Release | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: softprops/action-gh-release@v1 | |
cleanup: | |
needs: | |
- publish | |
uses: Cosmian/reusable_workflows/.github/workflows/cleanup_cache.yml@main | |
if: startsWith(github.ref, 'refs/tags/') | |
secrets: inherit |