-
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (40 loc) · 1.09 KB
/
Copy pathci.yml
File metadata and controls
50 lines (40 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
jobs:
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: jdx/mise-action@v4
with:
install: true
cache: true
- name: Setup
run: mise run setup
- name: Typecheck
run: bun run typecheck
- name: Test
run: bun test
- name: Build
run: mise run build
- name: Shellcheck installer
run: |
command -v shellcheck >/dev/null || sudo apt-get install -y shellcheck
shellcheck scripts/install.sh
- name: Check package size
run: |
npm pack --dry-run --json > /tmp/pack.json
BYTES=$(jq '.[0].size' /tmp/pack.json)
FILES=$(jq '.[0].entryCount' /tmp/pack.json)
echo "Tarball: $BYTES bytes across $FILES files"
if [ "$BYTES" -gt 3145728 ]; then
echo "Package tarball exceeds 3 MB"
exit 1
fi