99jobs :
1010 build_and_test :
1111 runs-on : ubuntu-latest
12- needs : get_ref
1312 strategy :
1413 fail-fast : false
1514 matrix :
@@ -18,45 +17,24 @@ jobs:
1817 # to major version bump the library
1918 version : [14, 16, 18, 20]
2019 steps :
21- - uses : actions/checkout@v5
20+ - uses : actions/checkout@v6
2221 - uses : actions/setup-node@v6
2322 with :
2423 node-version : ${{ matrix.version }}
2524 - name : build and unit test
2625 run : yarn && yarn build
27- - name : clone the tsp
28- uses : actions/checkout@v5
29- with :
30- repository : IronCoreLabs/tenant-security-proxy
31- ref : ${{ needs.get_ref.outputs.tsp_ref }}
32- path : tenant-security-proxy
33- token : ${{ secrets.WORKFLOW_PAT }}
34- - name : cache cargo
35- uses : actions/cache@v4
36- with :
37- key : ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
38- path : |
39- ~/.cargo/git
40- tenant-security-proxy/target
41- - name : Decrypt TSP integration keys
42- uses : IronCoreLabs/ironhide-actions/decrypt@v3
26+ - name : Save TSP env.integration to a file
27+ run : |
28+ cat > .env.integration <<EOF
29+ ${{ secrets.TSP_ENV_INTEGRATION }}
30+ EOF
31+ - name : Start the TSP
32+ uses : IronCoreLabs/workflows/.github/actions/start-tsp@start-tsp-v1
4333 with :
44- keys : ${{ secrets.IRONHIDE_KEYS }}
45- input : tenant-security-proxy/.env.integration.iron
46- - name : install zmq
47- run : sudo apt update && sudo apt install -y --no-install-recommends libzmq3-dev
34+ gcloud-auth : ${{ secrets.GCLOUD_AUTH }}
35+ env-file-path : .env.integration
4836 - name : integration test
49- run : |
50- cd tenant-security-proxy
51- cargo build --release
52- env $(cat .env.integration) cargo run --release &
53- 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
54- env $(cat .env.integration) yarn integration
55-
56- # Look for a comment telling us what TSP ref to use.
57- get_ref :
58- uses : IronCoreLabs/workflows/.github/workflows/get-tsp-ref.yaml@get-tsp-ref-v1
59- secrets : inherit
37+ run : env $(cat .env.integration) yarn integration
6038
6139 build_examples :
6240 runs-on : ubuntu-latest
0 commit comments