Skip to content

Commit

Permalink
chore(ci): scope ci for default theme only
Browse files Browse the repository at this point in the history
  • Loading branch information
epetrow committed Oct 4, 2024
1 parent a6e42de commit 31fa8c9
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 43 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/_compile-themes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,23 +37,14 @@ jobs:
- name: Build test assets
run: |
npm run sass
- name: Build swatch for a11y tests
run: |
npm run dist:swatches
npx sass-build build --file packages/default/dist/default-ocean-blue-a11y.scss --outFile packages/default/dist/default-ocean-blue-a11y.css
npm run sass --prefix packages/core
npm run sass --prefix packages/default
npm run sass --prefix packages/utils
- name: Pack themes
run: |
tar -cf themes.tar \
packages/default/dist/all.css \
packages/default/dist/default-ocean-blue-a11y.css \
packages/bootstrap/dist/all.css \
packages/classic/dist/all.css \
packages/fluent/dist/all.css \
packages/material/dist/all.css \
packages/nouvelle/dist/all.css \
packages/utils/dist/all.css
- name: Upload themes
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/_lint-styles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

strategy:
matrix:
theme: [default, bootstrap, material, classic, nouvelle, fluent]
theme: [default]

steps:

Expand Down Expand Up @@ -47,7 +47,3 @@ jobs:
- name: Ensure standalone build
run: |
npm run sass:standalone --prefix packages/${{ matrix.theme }} --if-present
- name: Ensure flat build
run: |
npm run sass:flat --prefix packages/${{ matrix.theme }} --if-present
22 changes: 11 additions & 11 deletions packages/default/sass-flat.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
module.exports = {
extends: [
'sass-build:recommended'
],
build: [
{
file: 'dist/all.scss',
outFile: 'dist/all.css'
}
]
};
// module.exports = {
// extends: [
// 'sass-build:recommended'
// ],
// build: [
// {
// file: 'dist/all.scss',
// outFile: 'dist/all.css'
// }
// ]
// };
16 changes: 1 addition & 15 deletions packages/default/sass-standalone.config.js
Original file line number Diff line number Diff line change
@@ -1,15 +1 @@
module.exports = {
extends: [
'sass-build:recommended'
],
build: [
{
entry: [ 'scss/!(common|styling)*/_index.scss' ],
sassOptions: {
loadPaths: [
'../../node_modules/'
]
}
}
]
};
module.exports = {};
5 changes: 5 additions & 0 deletions packages/default/sass-swatches.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ module.exports = {
build: [
{
entry: [ 'dist/!(_|variables)*.scss' ],
api: "modern",
compiler: "sass",
sassOptions: {
loadPaths: [
'../../node_modules/'
],
minify: true
}
}
Expand Down

0 comments on commit 31fa8c9

Please sign in to comment.