Skip to content

Commit

Permalink
fix ci scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
rschlaefli committed Nov 22, 2023
1 parent f5e2dd6 commit c3bb2e5
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 8 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

- run: npm run lint

check:
check-ts:
runs-on: ubuntu-latest
name: Check Types
steps:
Expand All @@ -35,6 +35,23 @@ jobs:

- run: npm run check

check-format:
runs-on: ubuntu-latest
name: Test
steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Use Node 18
uses: actions/setup-node@v3
with:
node-version: 18.x

- name: Install dependencies
uses: bahmutov/npm-install@v1

- run: npm run format:check

test:
runs-on: ubuntu-latest
name: Test
Expand All @@ -52,11 +69,10 @@ jobs:

- run: npm run test --ci --coverage --maxWorkers=2


build:
name: Build and Publish
runs-on: ubuntu-latest
needs: [lint, check, test]
needs: [lint, check-ts, check-format, test]
steps:
- name: Checkout repo
uses: actions/checkout@v3
Expand Down
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,12 @@
],
"volta": {
"node": "18.16.0"
},
"scripts": {
"lint": "npm run -w packages/design-system lint",
"test": "npm run -w packages/design-system test",
"build": "npm run -w packages/design-system build",
"check": "npm run -w packages/design-system check",
"format:check": "npm run -w packages/design-system format:check"
}
}
5 changes: 4 additions & 1 deletion packages/design-system/src/copy.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ const fs = require('fs')
const path = require('path')

fs.copyFileSync(
path.resolve(__dirname, '../../../node_modules/tailwindcss/src/css/preflight.css'),
path.resolve(
__dirname,
'../../../node_modules/tailwindcss/src/css/preflight.css'
),
path.resolve(__dirname, '../dist/preflight.css')
)
7 changes: 3 additions & 4 deletions packages/design-system/src/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,19 @@
<html>
<head>
<title>Parcel Sandbox</title>
<meta charset="UTF-8" />
<link rel="stylesheet" href="src/styles.css">
<meta charset="UTF-8" />
<link rel="stylesheet" href="src/styles.css" />
<script src="src/index.ts"></script>
</head>

<body>
<div id="app">
<div id="container" class="container">
<div id="container" class="container">
<x-button text="hello" onclick="console.log('hello world')"></x-button>
<x-countdown duration="60"></x-countdown>
<x-bf-countdown countdown-duration="60"></x-bf-countdown>
<x-collapsible content="hello world"></x-collapsible>
</div>
</div>
</div>
</body>
</html>

0 comments on commit c3bb2e5

Please sign in to comment.