diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8f2fb5a..1a971ea 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -62,7 +62,42 @@ jobs: VAULT_HOST: localhost VAULT_PORT: 8200 CI: true - + + integrationEnterprise: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + + - name: Run docker compose + run: docker compose up -d vault-enterprise + env: + VAULT_LICENSE_CI: ${{ secrets.VAULT_LICENSE_CI }} + + - uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0 + with: + node-version: "20.9.0" + + - name: Setup NPM Cache + uses: actions/cache@0c907a75c2c80ebcb7f088228285e798b750cf8f # v4.2.1 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + + - name: NPM Install + run: npm ci + + - name: NPM Build + run: npm run build + + - name: NPM Run test:integration:enterprise + run: npm run test:integration:enterprise + env: + VAULT_HOST: localhost + VAULT_PORT: 8200 + CI: true e2e: runs-on: ubuntu-latest