Skip to content

Commit 435b412

Browse files
committed
v0.64.0
1 parent b2a7946 commit 435b412

10 files changed

+4545
-1348
lines changed

.github/workflows/npm-publish.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,21 @@
44
name: Node.js Package
55

66
on:
7+
workflow_dispatch:
78
release:
89
types: [created]
910

1011
jobs:
11-
build:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- uses: actions/checkout@v4
15-
- uses: actions/setup-node@v4
16-
with:
17-
node-version: 20
18-
- run: npm ci
19-
- run: npm test
20-
2112
publish-npm:
22-
needs: build
2313
runs-on: ubuntu-latest
2414
steps:
2515
- uses: actions/checkout@v4
2616
- uses: actions/setup-node@v4
2717
with:
28-
node-version: 20
18+
node-version: '>=18'
2919
registry-url: https://registry.npmjs.org/
30-
- run: npm ci
20+
- run: npm install
21+
- run: npm run ci
3122
- run: npm publish
3223
env:
3324
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

.github/workflows/test.yml

Lines changed: 9 additions & 13 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:
15-
- uses: actions/checkout@v2
16-
- uses: actions/setup-node@v1
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-node@v4
1714
with:
18-
node-version: ${{ matrix.node }}
15+
node-version: '>=18'
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)