Modify expected results of azure unwrap (#121) #295
This file contains hidden or 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: Tenant Security Client NodeJS CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| build_and_test: | |
| runs-on: ubuntu-latest | |
| needs: get_ref | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| # our minimum supported node version is 14 according to `npx ls-engines`, so we'd like to keep testing on it. | |
| # If ci fails due to a needed new feature or we are forced to update the MSNV for any other reason, make sure | |
| # to major version bump the library | |
| version: [14, 16, 18, 20] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ matrix.version }} | |
| - name: build and unit test | |
| run: yarn && yarn build | |
| - name: clone the tsp | |
| uses: actions/checkout@v5 | |
| with: | |
| repository: IronCoreLabs/tenant-security-proxy | |
| ref: ${{ needs.get_ref.outputs.tsp_ref }} | |
| path: tenant-security-proxy | |
| token: ${{ secrets.WORKFLOW_PAT }} | |
| - name: cache cargo | |
| uses: actions/cache@v4 | |
| with: | |
| key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }} | |
| path: | | |
| ~/.cargo/git | |
| tenant-security-proxy/target | |
| - name: Decrypt TSP integration keys | |
| uses: IronCoreLabs/ironhide-actions/decrypt@v3 | |
| with: | |
| keys: ${{ secrets.IRONHIDE_KEYS }} | |
| input: tenant-security-proxy/.env.integration.iron | |
| - name: install zmq | |
| run: sudo apt update && sudo apt install -y --no-install-recommends libzmq3-dev | |
| - name: integration test | |
| run: | | |
| cd tenant-security-proxy | |
| cargo build --release | |
| env $(cat .env.integration) cargo run --release & | |
| timeout 700 bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost:9000/ready)" =~ ''[01346-9][0-9][0-9]'' ]]; do sleep 5; done' || false | |
| env $(cat .env.integration) yarn integration | |
| # Look for a comment telling us what TSP ref to use. | |
| get_ref: | |
| uses: IronCoreLabs/workflows/.github/workflows/get-tsp-ref.yaml@get-tsp-ref-v1 | |
| secrets: inherit | |
| build_examples: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| example-dir: | |
| [ | |
| large-documents, | |
| logging-example, | |
| rekey-example, | |
| simple-roundtrip, | |
| deterministic-roundtrip, | |
| ] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 14 | |
| - name: compilation check | |
| run: | | |
| yarn | |
| yarn tsc --target ES6 --sourceMap false --module CommonJS --outDir ./dist/src src/index.ts | |
| working-directory: ./examples/${{ matrix.example-dir }} |