Skip to content

Commit

Permalink
fix: cli run test before release (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
ido-pluto committed Oct 13, 2023
1 parent ecdb854 commit 4791f04
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,17 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: browser-actions/setup-chrome@v1

with:
node-version: "20"
- name: Install modules
run: npm ci --ignore-scripts && npm install -g wasm-pack@0.10.3
- name: Build
run: npm run build production && npm run postinstall
- name: Test
run: PUPPETEER_EXECUTABLE_PATH=$(which chrome) npm run test:dist

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion src/BuildInComponents/Components/style/sass.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {fileURLToPath, pathToFileURL} from 'url';
import StringTracker from '../../../EasyDebug/StringTracker';
import {BasicSettings, getTypes} from '../../../RunTimeBuild/SearchFileSystem';
import * as sass from 'sass';
import sass from 'sass';
import {createNewPrint} from '../../../OutputInput/Logger';
import {RawSourceMap} from 'source-map-js';
import {SessionBuild} from '../../../CompileCode/Session';
Expand Down
2 changes: 1 addition & 1 deletion src/ImportFiles/ForStatic/Style.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as sass from 'sass';
import sass from 'sass';
import EasyFs from '../../OutputInput/EasyFs';
import path from 'path';
import {fileURLToPath, pathToFileURL} from 'url';
Expand Down
3 changes: 2 additions & 1 deletion src/ImportFiles/ForStatic/Svelte/preprocess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {transform} from '@swc/core';
import {BasicSettings, getTypes} from '../../../RunTimeBuild/SearchFileSystem';
import EasyFs from '../../../OutputInput/EasyFs';
import {extname} from 'node:path';
import * as sass from 'sass';
import sass from 'sass';
import {v4 as uuid} from 'uuid';
import path from 'path';
import {fileURLToPath} from 'node:url';
Expand All @@ -29,6 +29,7 @@ async function SASSSvelte(content: StringTracker, lang: string, fullPath: string
dependencies: loadedUrls.map(x => fileURLToPath(<any>x))
};
} catch (err) {
console.log('sassError', err);
PrintSassErrorTracker(err, content);
}

Expand Down

0 comments on commit 4791f04

Please sign in to comment.