Update from Shopify for theme Trellis Demo #569
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: CI | |
on: [push] | |
jobs: | |
tailwindcss-update: | |
name: Generate Tailwind CSS | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Generate Tailwind CSS | |
uses: ZoeyVid/tailwindcss-update@main | |
with: | |
input: assets/app-tailwind.css | |
output: assets/app.css | |
params: "" | |
- name: Commit & Push | |
run: | | |
git config user.name "GitHub" | |
git config user.email "[email protected]" | |
git diff-index --quiet HEAD || git commit -m "ci: tailwindcss-update" | |
git push | |
lhci: | |
name: Lighthouse | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Lighthouse | |
uses: shopify/lighthouse-ci-action@v1 | |
with: | |
access_token: ${{ secrets.SHOP_ACCESS_TOKEN }} | |
store: ${{ secrets.SHOP_STORE }} | |
password: ${{ secrets.SHOP_PASSWORD }} | |
lhci_github_app_token: ${{ secrets.LHCI_GITHUB_APP_TOKEN }} | |
product_handle: ${{ secrets.SHOP_PRODUCT_HANDLE }} | |
collection_handle: ${{ secrets.SHOP_COLLECTION_HANDLE }} | |
theme-check: | |
name: Theme Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Theme Check | |
uses: shopify/theme-check-action@v1 | |
with: | |
token: ${{ github.token }} | |
gi-test: | |
name: Ghost Inspector Visual Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: execute Ghost Inspector test | |
uses: docker://ghostinspector/cli | |
with: | |
args: test execute ${{ secrets.GI_TEST }} \ | |
--apiKey ${{ secrets.GI_API_KEY }} \ | |
--errorOnFail |