Skip to content

Commit ef26463

Browse files
committed
Add initial CI configuration
1 parent 3bfa46e commit ef26463

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
branches: [main]
7+
8+
jobs:
9+
verify-dist:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: docker/setup-buildx-action@v3
14+
- uses: ./
15+
with:
16+
volumes: |
17+
node_modules: ${{ hashFiles('package-lock.json') }}
18+
- run: bin/setup
19+
- run: bin/npm run build
20+
- name: Check for uncommitted changes
21+
run: |
22+
if [ -n "$(git status --porcelain dist/)" ]; then
23+
echo "::error::dist/ is out of date. Run 'npm run build' and commit the changes."
24+
git diff dist/
25+
exit 1
26+
fi

0 commit comments

Comments
 (0)