[PB-5329] feature(versioning): include version sizes in user storage usage calculation #270
Workflow file for this run
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 e2e tests | |
| on: | |
| pull_request: | |
| types: [opened, synchronize] | |
| jobs: | |
| run-tests: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: read | |
| environment: | |
| name: development | |
| env: | |
| SENDGRID_API_KEY: ${{ secrets.SENDGRID_API_KEY }} | |
| SENDGRID_MODE_SANDBOX: true | |
| strategy: | |
| matrix: | |
| node-version: [20.x] | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| registry-url: 'https://npm.pkg.github.com' | |
| # We should see why permissions field is not doing the job. This should be removed | |
| # You cannot read packages from other private repos with GITHUB_TOKEN | |
| # You have to use a PAT instead https://github.com/actions/setup-node/issues/49 | |
| - name: Configure npm authentication | |
| env: | |
| PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
| run: | | |
| echo "registry=https://registry.yarnpkg.com/" > .npmrc | |
| echo "@internxt:registry=https://npm.pkg.github.com" >> .npmrc | |
| echo "//npm.pkg.github.com/:_authToken=${PERSONAL_ACCESS_TOKEN}" >> .npmrc | |
| echo "always-auth=true" >> .npmrc | |
| - name: Setup environment | |
| uses: hoverkraft-tech/compose-action@b716db5b717cb9b81e391fe638e5aceaa2299e43 | |
| with: | |
| compose-file: './infrastructure/docker-compose.yml' | |
| - name: Install dependencies | |
| run: yarn | |
| - name: Run e2e tests | |
| run: yarn migrate:test && yarn run db:seed:test:all && yarn run test:e2e |