Skip to content
This repository has been archived by the owner on Apr 13, 2024. It is now read-only.

Add product queries #31

Add product queries

Add product queries #31

Workflow file for this run

name: Continuous Integration
on: push
env:
NODE_VERSION: 18
PNPM_VERSION: 8
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Install NodeJS
uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install PNPM
uses: pnpm/action-setup@v2
id: pnpm-install
with:
version: ${{ env.PNPM_VERSION }}
- name: Code Checkout
uses: actions/checkout@v2
- name: Get PNPM store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Setup PNPM cache
uses: actions/cache@v3
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Code Linting
run: pnpm lint
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Install NodeJS
uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install PNPM
uses: pnpm/action-setup@v2
id: pnpm-install
with:
version: ${{ env.PNPM_VERSION }}
- name: Code Checkout
uses: actions/checkout@v2
- name: Get PNPM store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Setup PNPM cache
uses: actions/cache@v3
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm build