-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsage10-build-test.yml
More file actions
37 lines (31 loc) · 828 Bytes
/
sage10-build-test.yml
File metadata and controls
37 lines (31 loc) · 828 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# .github/workflows/sage10-build.yml
##
# Build a Sage 10-based theme
#
# ⚠️ This example assumes your theme is using Sage 10
#
# Replace `sage` below with your theme folder
#
##
name: 🚧 Sage 10 build test
on: [push]
env:
theme_slug: sage # Update this with your theme's directory name
node_version: '16'
jobs:
yarn-build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./site/web/app/themes/${{ env.theme_slug }}
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ env.node_version }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.node_version }}
cache: yarn
cache-dependency-path: ./site/web/app/themes/${{ env.theme_slug }}/yarn.lock
- run: composer install
- run: yarn install
- run: yarn build