[_]: feat/centralize auth and rate limit #884
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: Tests suite | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| jobs: | |
| tests: | |
| name: Run tests | |
| runs-on: ubuntu-latest | |
| environment: test | |
| strategy: | |
| matrix: | |
| node-version: [22.12.0] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v1 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| registry-url: "https://npm.pkg.github.com" | |
| - run: echo NODE_ENV=test >> ./.env | |
| - run: echo SERVER_PORT=8000 >> ./.env | |
| - run: echo STRIPE_SECRET_KEY=${{ secrets.STRIPE_SECRET_KEY }} >> ./.env | |
| - run: echo JWT_SECRET=JWT_SECRET >> ./.env | |
| - run: echo CRYPTO_PAYMENTS_PROCESSOR_SECRET_KEY=secret >> ./.env | |
| - run: echo CRYPTO_PAYMENTS_PROCESSOR_API_KEY=api-key >> ./.env | |
| - run: echo CRYPTO_PAYMENTS_PROCESSOR_API_URL=url >> ./.env | |
| - run: echo DRIVE_NEW_GATEWAY_SECRET=secret >> ./.env | |
| - run: echo DRIVE_NEW_GATEWAY_URL=http://localhost:8003 >> ./.env | |
| - run: echo CHART_API_URL=api_url >> ./.env | |
| - run: echo PAYMENTS_GATEWAY_SECRET=${{secrets.PAYMENTS_GATEWAY_SECRET}} >> ./.env | |
| - run: echo PAYMENTS_GATEWAY_PUBLIC_SECRET=${{secrets.PAYMENTS_GATEWAY_PUBLIC_SECRET}} >> ./.env | |
| - run: echo PC_CLOUD_TRIAL_CODE=my_code >> ./.env | |
| - run: echo "registry=https://registry.yarnpkg.com/" > .npmrc | |
| - run: echo "@internxt:registry=https://npm.pkg.github.com" >> .npmrc | |
| # 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 | |
| - run: echo //npm.pkg.github.com/:_authToken=${{ secrets.PERSONAL_ACCESS_TOKEN }} >> .npmrc | |
| - run: echo "always-auth=true" >> .npmrc | |
| - name: Install dependencies | |
| run: yarn | |
| - name: Fixtures spec | |
| run: yarn spec | |
| - name: Payments-server tests | |
| run: yarn test |