Skip to content

Commit cc30e50

Browse files
committed
v0.64.0
1 parent b2a7946 commit cc30e50

9 files changed

+4540
-1334
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,17 @@
11
name: ci
2-
on: [push, pull_request]
2+
on:
3+
push:
4+
branches: ['*']
5+
pull_request:
36

47
jobs:
58
test:
6-
strategy:
7-
fail-fast: true
8-
matrix:
9-
os: [ubuntu-latest]
10-
node: ['14']
11-
12-
runs-on: ${{ matrix.os }}
9+
runs-on: ubuntu-latest
1310

1411
steps:
1512
- uses: actions/checkout@v2
16-
- uses: actions/setup-node@v1
13+
- uses: actions/setup-node@v4
1714
with:
18-
node-version: ${{ matrix.node }}
15+
node-version: '>=22.12.0'
1916
- run: npm install
20-
- run: npm run build-test
21-
- run: npm test
17+
- run: npm run ci

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ Desktop.ini
2020
# Mac crap
2121
.DS_Store
2222

23-
test/cases
23+
test/cases/

build-test-cases.mjs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
1-
import fetch from "make-fetch-happen";
2-
import decompress from "decompress";
1+
import fs from 'fs';
2+
import decompress from 'decompress';
33

4-
const r = await fetch("https://github.com/stylus/stylus/archive/dev.zip");
5-
const b = await r.buffer();
4+
const DIR = "test/cases";
5+
const URL = "https://github.com/stylus/stylus/archive/dev.zip";
6+
7+
fs.rmSync(DIR, {recursive: true, force: true});
8+
console.log(`Fetching tests from ${URL}...`);
9+
10+
const b = Buffer.from(await (await fetch(URL)).arrayBuffer());
611
const files = await decompress(b, "test/cases", {
712
filter: file => /test[\\/]cases[\\/][^\\/]+$/.test(file.path),
813
map: file => {
914
file.path = file.path.split(/cases[\\/]/)[1] || file.path;
1015
return file;
1116
}
1217
});
18+
console.log("Tests created.");

dist/stylus-renderer.min.js

Lines changed: 7 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/stylus-renderer.min.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)