Skip to content

Commit 163641b

Browse files
committed
Add CI test workflow + mark playground JS as linguist-generated for correct language stats
1 parent b0e6dfe commit 163641b

2 files changed

Lines changed: 49 additions & 0 deletions

File tree

.gitattributes

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Mark playground JS files as generated so GitHub language stats
2+
# correctly show this as a Julia package, not a JavaScript project.
3+
# These files ARE source code (hand-written), but they're runtime
4+
# artifacts for the browser playground, not the package's core logic.
5+
src/playground/*.js linguist-generated=true
6+
docs/src/assets/playground/*.js linguist-generated=true
7+
docs/playground/*.html linguist-generated=true

.github/workflows/ci.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
jobs:
9+
test:
10+
name: Julia ${{ matrix.version }} - ${{ matrix.os }}
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
version:
16+
- '1.12'
17+
os:
18+
- ubuntu-latest
19+
- macos-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- uses: julia-actions/setup-julia@v2
24+
with:
25+
version: ${{ matrix.version }}
26+
27+
- uses: actions/setup-node@v4
28+
with:
29+
node-version: '22'
30+
31+
- uses: julia-actions/cache@v2
32+
33+
- name: Install dependencies
34+
run: |
35+
julia --project=. -e '
36+
using Pkg
37+
Pkg.instantiate()
38+
'
39+
40+
- name: Run tests
41+
run: |
42+
julia --project=. test/runtests.jl

0 commit comments

Comments
 (0)