path #12
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: Encryption Tests | |
| on: | |
| push | |
| #workflow_dispatch: {} | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| id-token: write | |
| jobs: | |
| set-up: | |
| permissions: | |
| # required for all workflows | |
| security-events: write | |
| id-token: write | |
| contents: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Install mongodb-client-encryption | |
| run: npm install mongodb-client-encryption | |
| run-tests: | |
| needs: | |
| - set-up | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node: [20] | |
| os: [ubuntu-latest] | |
| mongodb: [8.0.0] | |
| #clone drivers-evergreen-tools (will delete itself once the run is over) | |
| #set path | |
| #calling run orchestration sets up a server on your computer | |
| # it outputs relevants uri in expansions.yml | |
| # put uri into an environment variable | |
| name: Encryption tests | |
| env: | |
| FORCE_COLOR: true | |
| steps: | |
| - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | |
| - name: Setup node | |
| uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 | |
| with: | |
| node-version: latest | |
| - name: Load MongoDB binary cache | |
| id: cache-mongodb-binaries | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/mongodb-binaries | |
| key: ${{ matrix.os }}-${{ matrix.mongodb }} | |
| - name: Install Dependencies | |
| run: npm install | |
| - name: Install drivers-evergreen-tools | |
| run: git clone --depth=1 https://github.com/mongodb-labs/drivers-evergreen-tools.git ~/.cache/drivers-evergreen-tools | |
| - name: Set up cluster | |
| run: bash .github/scripts/run-orchestration.sh | |
| env: | |
| # The following is the settings for how we want to launch mongodb | |
| MONGODB_VERSION: 8.0.0 | |
| TOPOLOGY: sharded | |
| AUTH: auth | |
| # ORCHESTRATION_FILE: ${ORCHESTRATION_FILE} | |
| # REQUIRE_API_VERSION: ${REQUIRE_API_VERSION} | |
| # LOAD_BALANCER: ${LOAD_BALANCER} | |
| # COMPRESSOR: ${COMPRESSOR} | |
| # These are paths necessary for launching mongodb | |
| DRIVERS_TOOLS: ~/.cache/drivers-evergreen-tools | |
| MONGODB_BINARIES: ~/.cache/mongodb-binaries | |
| - name: Test | |
| run: mocha --exit ./test/encryption/*.test.js |