Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a5531cc

Browse filesBrowse files
committed
Use Github Actions.
1 parent 79d5af0 commit a5531cc
Copy full SHA for a5531cc

File tree

Expand file treeCollapse file tree

2 files changed

+36
-1
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+36
-1
lines changed

‎.github/workflows/tests.yml

Copy file name to clipboard
+35Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: HTMLMinTests
2+
on: [push, pull_request]
3+
jobs:
4+
htmlmin:
5+
name: PHP ${{ matrix.php-versions }}
6+
runs-on: ubuntu-latest
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
php-versions: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
- name: Setup PHP with Composer and extensions
15+
with:
16+
php-version: ${{ matrix.php-versions }}
17+
uses: shivammathur/setup-php@v2
18+
- name: Get Composer cache directory
19+
id: composercache
20+
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
21+
- name: Cache Composer dependencies
22+
uses: actions/cache@v2
23+
with:
24+
php-version: ${{ matrix.php-versions }}
25+
path: ${{ steps.composercache.outputs.dir }}
26+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
27+
restore-keys: ${{ runner.os }}-composer-
28+
- name: Install Composer dependencies
29+
env:
30+
PHP_VERSION: ${{ matrix.php-versions }}
31+
run: composer install --no-progress --prefer-dist --optimize-autoloader $(if [ "$PHP_VERSION" == "8.0" || "$PHP_VERSION" == "8.1" ]; then echo "--ignore-platform-reqs"; fi;)
32+
- name: Run tests with code coverage
33+
env:
34+
PHP_VERSION: ${{ matrix.php-versions }}
35+
run: vendor/bin/phpunit $(if [ "$PHP_VERSION" == "7.2" ]; then echo "-c phpunit.xml.dist.php72"; fi;) --coverage-clover build/logs/clover.xml

‎src/Minifiers/JsMinifier.php

Copy file name to clipboardExpand all lines: src/Minifiers/JsMinifier.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
namespace HTMLMin\HTMLMin\Minifiers;
1414

15-
use JSMin;
15+
use JSMin\JSMin;
1616

1717
/**
1818
* This is the js minifier class.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.