Skip to content

Commit 3c5a257

Browse files
committed
add temporary test for standalone CLI
1 parent 441e362 commit 3c5a257

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Test Standalone CLI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
10+
env:
11+
CI: true
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
build_cli:
18+
permissions:
19+
contents: write # for softprops/action-gh-release to create GitHub release
20+
runs-on: macos-11
21+
steps:
22+
- uses: actions/checkout@v3
23+
24+
- run: git fetch --tags -f
25+
26+
- name: Use Node.js 16
27+
uses: actions/setup-node@v3
28+
with:
29+
node-version: '16'
30+
registry-url: 'https://registry.npmjs.org'
31+
32+
- name: Build tailwindcss
33+
run: npm run prepublishOnly
34+
35+
- name: Install standalone cli dependencies
36+
run: npm install
37+
working-directory: standalone-cli
38+
39+
- name: Build standalone cli
40+
run: npm run build
41+
working-directory: standalone-cli
42+
43+
- name: Test
44+
run: npm test
45+
working-directory: standalone-cli

0 commit comments

Comments
 (0)