Skip to content

Test commit 5

Test commit 5 #3

Workflow file for this run

name: CI/CD Pipeline for Shopify
on:
push:
branches:
- feature/github-actions # Change 'feature/github-actions' to main
jobs:
theme-check:
name: Theme Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3 # Checkout code; no need for Node version specification here
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20' # Explicitly set Node.js version to 20
- name: Run Theme Check
uses: shopify/theme-check-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }} # Using the default GitHub token
deploy:
name: Deploy to Shopify Store
runs-on: ubuntu-latest
needs: [lhci, theme-check] # Ensure deployment runs after Lighthouse and Theme Check

Check failure on line 29 in .github/workflows/ci-cd.yml

View workflow run for this annotation

GitHub Actions / CI/CD Pipeline for Shopify

Invalid workflow file

The workflow is not valid. .github/workflows/ci-cd.yml (Line: 29, Col: 13): Job 'deploy' depends on unknown job 'lhci'.
steps:
- uses: actions/checkout@v3 # Checkout code; no need for Node version specification here
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20' # Explicitly set Node.js version to 20
- name: Install Shopify CLI
run: npm install -g @shopify/cli @shopify/theme
- name: Authenticate Shopify CLI
env:
SHOPIFY_CLI_AUTH_TOKEN: ${{ secrets.SHOPIFY_CLI_AUTH_TOKEN }}
run: echo $SHOPIFY_CLI_AUTH_TOKEN | shopify login --store ${{ secrets.SHOPIFY_STORE_URL }} --password-stdin
- name: Deploy Theme to Shopify
env:
SHOPIFY_STORE_URL: ${{ secrets.SHOPIFY_STORE_URL }}
SHOPIFY_THEME_ID: ${{ secrets.SHOPIFY_THEME_ID }}
run: shopify theme push --allow-live --themeid=${{ secrets.SHOPIFY_THEME_ID }}