Skip to content

[feat]add clerk auth and modal to create store #36

[feat]add clerk auth and modal to create store

[feat]add clerk auth and modal to create store #36

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Development
on:
pull_request:
branches:
- main
env:
## Sets environment variable
NEXT_PUBLIC_CLERK_SIGN_IN_URL: /sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL: /sign-up
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL: /dashboard
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL: /dashboard
CLERK_SECRET_KEY: ${{ secrets.CLERK_SECRET_KEY }}
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: ${{ secrets.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY }}
BRACH_NAME: ${{ github.ref_name }}
jobs:
lint:
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 }}
# ESLint and Prettier must be in `package.json`
- name: Install dependencies
run: npm install
- name: Run lint
run: npm run lint
test:
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 }}
- name: Install dependencies
run: npm install
- name: Run unit tests
run: npm run test
integration:
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 }}
- name: Build docker-composer
run: docker-compose up -d
- name: Check running container
run: docker ps -a
- name: Run cypress tests
run: npm run cypress:headless
# - name: Run cypress tests
# uses: cypress-io/github-action@v6
# with:
# browser: chrome
# headed: true