Skip to content

Commit 9a57ec9

Browse files
committed
switch to gha
1 parent 97f9ea9 commit 9a57ec9

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

.github/workflows/export-to-release.yaml renamed to .github/workflows/on-push-or-pr.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ jobs:
1313
with:
1414
node-version: "18"
1515
- run: npm i
16-
- run: scripts/smoke-test.sh
16+
- run: scripts/smoke-test-monorepo.sh
1717
- run: scripts/export-variants.sh
18+
- run: scripts/smoke-test-exported.sh
1819
- uses: softprops/action-gh-release@v1
1920
if: startsWith(github.ref, 'refs/tags/')
2021
with:

scripts/smoking-test-exported.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/env bash
2+
3+
set -ue
4+
set -o pipefail
5+
cd $(dirname "$0")/..
6+
7+
for d in empty next preact-spa hono-worker; do
8+
tar xf $d.tar.xz
9+
pushd $d
10+
npm i
11+
npm run lint
12+
npm run typecheck
13+
npm test
14+
npm run build
15+
popd
16+
done
17+
18+
wait

scripts/smoking-test.sh renamed to scripts/smoking-test-monorepo.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,3 @@ for d in empty next preact-spa hono-worker; do
1616
done
1717

1818
wait
19-

0 commit comments

Comments
 (0)