Skip to content

feat(order): add keyword filter for shop name and product name #55

feat(order): add keyword filter for shop name and product name

feat(order): add keyword filter for shop name and product name #55

Workflow file for this run

name: Build & run test (npm)
on:
workflow_dispatch:
push:
branches: ['main']
paths:
- 'src/**'
- 'test/**'
- 'package.json'
- 'package-lock.json'
- '!**/README*.md'
- '!docs/**'
pull_request:
branches: ['main']
types: [opened, synchronize]
paths:
- 'src/**'
- 'test/**'
- 'package.json'
- 'package-lock.json'
- '!**/README*.md'
- '!docs/**'
permissions:
contents: read
jobs:
build-and-test:
name: Build and test
timeout-minutes: 15
if: |
!contains(github.event.pull_request.labels.*.name, 'skip-ci') &&
!contains(github.event.pull_request.labels.*.name, 'skip-actions')
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./
strategy:
matrix:
node-version: [20.16.0]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
# - name: Lint code
# run: npm run lint
- name: Prisma generate
run: npx prisma generate
- name: Build project
run: npm run build
- name: Commit dist
run: |
git config user.name "github-actions"
git config user.email "actions@github.com"
git add dist
git commit -m "ci: build dist" || echo "No changes"
git push
# - name: Build docs
# run: npm run docs:build
- name: Run Unit Tests
run: npm test
# release:
# name: Semantic Release
# runs-on: ubuntu-latest
# needs: build-and-test
# steps:
# - uses: actions/checkout@v4
# - name: Setup Node.js
# uses: actions/setup-node@v4
# with:
# node-version: 20
# - name: Install dependencies
# run: npm ci
# - name: Release
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: npx semantic-release
# deploy:
# name: Deploy to Render
# runs-on: ubuntu-latest
# needs: release
# steps:
# - name: Trigger Render Deployment
# env:
# RENDER_API_KEY: ${{ secrets.RENDER_API_KEY }}
# run: |
# curl -X POST "https://api.render.com/deploy/srv-xxxxxxxxxxxx" \
# -H "Authorization: Bearer $RENDER_API_KEY"