Skip to content

Register as an seller and upgrade to seller #785

Register as an seller and upgrade to seller

Register as an seller and upgrade to seller #785

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- develop
env:
PORT: ${{ secrets.PORT }}
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
DATABASE_URL_TEST: ${{ secrets.DATABASE_URL_TEST }}
NODE_EN: ${{ secrets.NODE_EN }}
API_KEY: ${{ secrets.API_KEY }}
API_SECRET: ${{ secrets.API_SECRET }}
CLOUD_NAME: ${{ secrets.CLOUD_NAME }}
JWT_SECRET: ${{ secrets.JWT_SECRET }}
SERVER_URL_PRO: ${{ secrets.SERVER_URL_PRO }}
SMTP_HOST_PORT: ${{ secrets.SMTP_HOST_PORT }}
MP: ${{ secrets.MP }}
SMTP_HOST: ${{ secrets.SMTP_HOST }}
MAIL_ID: ${{ secrets.MAIL_ID }}
DB_HOST_TYPE: ${{ secrets.DB_HOST_TYPE }}
GOOGLE_CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }}
GOOGLE_CLIENT_SECRET: ${{ secrets.GOOGLE_CLIENT_SECRET }}
Session_secret: ${{ secrets.Session_secret }}
WEBHOOK_SECRET: ${{ secrets.WEBHOOK_SECRET }}
STRIPE_SECRET: ${{ secrets.STRIPE_SECRET }}
STRIPE_SECRET_KEY: ${{ secrets.STRIPE_SECRET_KEY }}
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Install dependencies
run: npm install
- name: Set NODE_ENV to test
run: echo "NODE_ENV=test" >> $GITHUB_ENV
- run: npm run build --if-present
- run: npm test --if-present -- --verbose
- run: npm run coverage --if-present
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Upload coverage to Coveralls
uses: coverallsapp/github-action@v2
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}