fix(additional-privileges): return correct project membership ID #5544
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: "Run backend tests" | |
| on: | |
| pull_request: | |
| types: [opened, synchronize] | |
| paths: | |
| - "backend/**" | |
| - "!backend/README.md" | |
| - "!backend/.*" | |
| - "backend/.eslintrc.js" | |
| workflow_call: | |
| jobs: | |
| check-be-pr: | |
| name: Run integration test | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Free up disk space | |
| run: | | |
| sudo rm -rf /usr/share/dotnet | |
| sudo rm -rf /opt/ghc | |
| sudo rm -rf "/usr/local/share/boost" | |
| sudo rm -rf "$AGENT_TOOLSDIRECTORY" | |
| docker system prune -af | |
| - name: ☁️ Checkout source | |
| uses: actions/checkout@v3 | |
| - uses: KengoTODA/actions-setup-docker-compose@v1 | |
| if: ${{ env.ACT }} | |
| name: Install `docker compose` for local simulations | |
| with: | |
| version: "2.14.2" | |
| - name: 🔧 Setup Node 20 | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: "20" | |
| cache: "npm" | |
| cache-dependency-path: backend/package-lock.json | |
| - name: Install dependencies | |
| run: npm install | |
| working-directory: backend | |
| - name: Start postgres and redis | |
| run: touch .env && docker compose -f docker-compose.dev.yml up -d db redis | |
| - name: Start Secret Rotation testing databases | |
| run: docker compose -f docker-compose.e2e-dbs.yml up -d --wait --wait-timeout 300 | |
| - name: Run unit test | |
| run: npm run test:unit | |
| working-directory: backend | |
| - name: Run integration test | |
| run: npm run test:e2e | |
| working-directory: backend | |
| env: | |
| E2E_TEST_ORACLE_DB_19_HOST: ${{ secrets.E2E_TEST_ORACLE_DB_19_HOST }} | |
| E2E_TEST_ORACLE_DB_19_USERNAME: ${{ secrets.E2E_TEST_ORACLE_DB_19_USERNAME }} | |
| E2E_TEST_ORACLE_DB_19_PASSWORD: ${{ secrets.E2E_TEST_ORACLE_DB_19_PASSWORD }} | |
| REDIS_URL: redis://172.17.0.1:6379 | |
| DB_CONNECTION_URI: postgres://infisical:[email protected]:5432/infisical?sslmode=disable | |
| AUTH_SECRET: something-random | |
| ENCRYPTION_KEY: 4bnfe4e407b8921c104518903515b218 | |
| - name: cleanup | |
| run: | | |
| docker compose -f "docker-compose.dev.yml" down | |