Skip to content

Commit

Permalink
fix some CI and tooling
Browse files Browse the repository at this point in the history
  • Loading branch information
thednp committed Aug 11, 2024
1 parent baf846d commit 307fac8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v3
# - name: Install pnpm
# uses: pnpm/action-setup@v3

- name: Install Cypress
run: npx cypress install
Expand All @@ -18,12 +18,16 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
# cache: pnpm

- run: pnpm install --no-frozen-lockfile
- run: pnpm build
# - run: pnpm compile
- run: pnpm test
- run: npm install
- run: npm run check:ts
- run: npm run lint:ts
- run: npm run lint:css
- run: npm run build-vite
- run: pnp run compile-scss
- run: npm run clean-coverage
- run: npx cypress run

- name: Upload coverage report on Node 20 to coveralls.io...
uses: coverallsapp/github-action@master
Expand Down
2 changes: 1 addition & 1 deletion dts.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const config = {
{
filePath: "./src/ts/index.ts",
outFile: "./dist/js/navbar.d.ts",
noCheck: false,
noCheck: true,
output: {
umdModuleName: 'Navbar',
noBanner: true,
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
"check:ts": "tsc --noEmit",
"fix:css": "stylelint --config .stylelintrc.json --fix scss \"src/scss/*.scss\"",
"lint:css": "stylelint --config .stylelintrc.json scss \"src/scss/*.scss\"",
"build": "pnpm check:ts && pnpm lint:ts && pnpm build-vite && pnpm dts",
"build-vite": "vite build && pnpm docs",
"build": "pnpm check:ts && pnpm lint:ts && pnpm build-vite && pnpm dts && pnpm docs",
"build-vite": "vite build",
"dts": "dts-bundle-generator --config ./dts.config.ts",
"docs": "ncp dist/js/navbar.js docs/src/js/navbar.js && ncp dist/js/navbar.js.map docs/src/js/navbar.js.map",
"compile": "pnpm lint:css && npm-run-all --parallel compile-* && pnpm copy-compile",
Expand Down
File renamed without changes.

0 comments on commit 307fac8

Please sign in to comment.