Skip to content

Commit 415beb1

Browse files
committed
Enable tests on Windows (#70)
1 parent f4323e5 commit 415beb1

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

Diff for: .github/workflows/test.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI
1+
name: test
22
on:
33
- push
44
- pull_request
@@ -15,6 +15,7 @@ jobs:
1515
os:
1616
- ubuntu-latest
1717
- macos-latest
18+
- windows-latest
1819
steps:
1920
- uses: actions/checkout@v2
2021
- if: contains(matrix.os, 'ubuntu')

Diff for: readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# mozjpeg-bin ![GitHub Actions Status](https://github.com/imagemin/mozjpeg-bin/workflows/test/badge.svg?branch=master)
1+
# mozjpeg-bin ![GitHub Actions Status](https://github.com/imagemin/mozjpeg-bin/workflows/test/badge.svg?branch=main)
22

33
> [mozjpeg](https://github.com/mozilla/mozjpeg) is a production-quality JPEG encoder that improves compression while maintaining compatibility with the vast majority of deployed decoders
44

Diff for: test/test.js

+7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import fs from 'node:fs';
22
import os from 'node:os';
33
import path from 'node:path';
4+
import process from 'node:process';
45
import {fileURLToPath} from 'node:url';
56
import test from 'ava';
67
import execa from 'execa';
@@ -13,6 +14,12 @@ import mozjpeg from '../index.js';
1314
const cpuNumber = os.cpus().length;
1415

1516
test('rebuild the mozjpeg binaries', async t => {
17+
// Skip the test on Windows
18+
if (process.platform === 'win32') {
19+
t.pass();
20+
return;
21+
}
22+
1623
const temporary = tempy.directory();
1724
const cfg = [
1825
'./configure --enable-static --disable-shared --disable-dependency-tracking --with-jpeg8',

0 commit comments

Comments
 (0)