feat: hierarchical categories #458
Workflow file for this run
This file contains 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: Check | |
on: | |
push: | |
branches: ["main", "master", "develop", "preprod"] | |
pull_request: | |
types: [opened, synchronize] | |
jobs: | |
build: | |
environment: production | |
name: Build and Test | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
env: | |
SKIP_ENV_VALIDATION: true | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
SHOPIFY_STOREFRONT_ACCESS_TOKEN: ${{ secrets.SHOPIFY_STOREFRONT_ACCESS_TOKEN }} | |
SHOPIFY_ADMIN_ACCESS_TOKEN: ${{ secrets.SHOPIFY_ADMIN_ACCESS_TOKEN }} | |
SHOPIFY_STORE_DOMAIN: ${{ secrets.SHOPIFY_STORE_DOMAIN }} | |
MEILISEARCH_MASTER_KEY: ${{ secrets.MEILISEARCH_MASTER_KEY }} | |
MEILISEARCH_HOST: ${{ secrets.MEILISEARCH_HOST }} | |
SHOPIFY_APP_API_SECRET_KEY: ${{ secrets.SHOPIFY_APP_API_SECRET_KEY }} | |
REPLICATE_API_KEY: ${{ secrets.REPLICATE_API_KEY }} | |
steps: | |
- uses: actions/checkout@v4 | |
- run: echo "node_version=$(cat .github/nodejs.version)" >> $GITHUB_ENV | |
- name: "Use node ${{ env.node_version }}" | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "${{ env.node_version }}" | |
- uses: actions/cache@v2 | |
with: | |
path: "**/node_modules" | |
key: ${{ runner.os }}-check-modules-${{ hashFiles('**/yarn.lock') }} | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile --prefer-offline | |
- name: Licenses check | |
run: npx --yes license-checker-rseidelsohn --production --excludePrivatePackages --onlyAllow "MPL-2.0;UNKNOWN;MIT;Apache;AAL;BSD;Artistic;CC0;ISC;ISCL;PostgreSQL License;Public Domain;Unlicense;UPL;W3C;WTFPL;Python;CC-;BlueOak" | |
- name: Build | |
run: yarn build | |
- name: Test | |
run: yarn test |