Skip to content
This repository has been archived by the owner on Apr 28, 2024. It is now read-only.

Commit

Permalink
6.1.1 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
lcharette authored Dec 28, 2020
2 parents 2a17e54 + 5847d44 commit 66e1033
Show file tree
Hide file tree
Showing 13 changed files with 73 additions and 134 deletions.
53 changes: 0 additions & 53 deletions .appveyor.yml

This file was deleted.

40 changes: 40 additions & 0 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build

on:
push:
branches: [master, develop]
pull_request:
branches: [master, develop]
schedule:
- cron: "0 0 * * 5"

jobs:
PHPUnit:

strategy:
fail-fast: false
matrix:
php_versions: ['7.1', '7.2', '7.3', '7.4']
os: [ubuntu-latest, windows-latest]

runs-on: ${{ matrix.os }}
name: PHPUnit Tests - ${{ matrix.php_versions }} - ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php_versions }}
extensions: mbstring, dom, fileinfo, gd
coverage: xdebug
tools: pecl
- name: Install Dependencies
run: composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Execute tests via PHPUnit
run: vendor/bin/phpunit
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
file: ./_meta/coverage.xml
fail_ci_if_error: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ composer.lock
*.komodoproject
.php_cs.cache
_meta
.phpunit.result.cache
21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [6.1.1]
- Replaced Travis & Appveyor with GitHub Action for build
- Upgrade deprecation in tests

## [6.1.0] - 2020-03-17
- Updated dependencies

Expand Down Expand Up @@ -76,6 +80,7 @@ Add custom exceptions.
## [1.0] - 2016-04-05
Initial release.

[6.1.1]: https://github.com/userfrosting/assets/compare/6.1.0...6.1.1
[6.1.0]: https://github.com/userfrosting/assets/compare/6.0.0...6.1.0
[6.0.0]: https://github.com/userfrosting/assets/compare/5.0.2...6.0.0
[5.0.2]: https://github.com/userfrosting/assets/compare/5.0.1...5.0.2
Expand Down
39 changes: 18 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,29 @@
# UserFrosting/Assets

[![Latest Version][version-badge]][releases]
[![Latest Version][assets-version]][Assets]
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](LICENSE.md)
[![Join the chat at https://chat.userfrosting.com/channel/support](https://demo.rocket.chat/images/join-chat.svg)](https://chat.userfrosting.com/channel/support)
[![Join the chat at https://chat.userfrosting.com/channel/support](https://chat.userfrosting.com/api/v1/shield.svg?name=UserFrosting)](https://chat.userfrosting.com/channel/support)
[![Donate](https://img.shields.io/badge/Open%20Collective-Donate-blue.svg)](https://opencollective.com/userfrosting#backer)

| Branch | Build | Coverage | Style |
| ------ | ----- | -------- | ----- |
| [master][master] | [![Build Status][master-build-travis-badge]][travis] [![Windows Build][master-build-appveyor-badge]][appveyor] | [![codecov][master-codecov-badge]][codecov] | [![][master-styleci-badge]][styleci] |
| [develop][develop] | [![Build Status][develop-build-travis-badge]][travis] [![Windows Build][develop-build-appveyor-badge]][appveyor] | [![codecov][develop-codecov-badge]][codecov] | [![][develop-styleci-badge]][styleci] |
| ------ |:-----:|:--------:|:-----:|
| [master][Assets] | [![][assets-master-build]][assets-travis] | [![][assets-master-codecov]][assets-codecov] | [![][assets-style-develop]][assets-style] |
| [develop][Assets-develop] | [![][assets-develop-build]][assets-travis] | [![][assets-develop-codecov]][assets-codecov] | [![][assets-style-develop]][assets-style] |

<!-- Links -->
[codecov]: https://codecov.io/gh/userfrosting/assets
[releases]: https://github.com/userfrosting/assets/releases
[styleci]: https://github.styleci.io/repos/55460230
[travis]: https://travis-ci.org/userfrosting/assets
[appveyor]: https://ci.appveyor.com/project/userfrosting/assets
[version-badge]: https://img.shields.io/github/release/userfrosting/assets.svg
[master]: https://github.com/userfrosting/assets/tree/master
[master-styleci-badge]: https://github.styleci.io/repos/55460230/shield?branch=master&style=flat
[master-codecov-badge]: https://codecov.io/gh/userfrosting/assets/branch/master/graph/badge.svg
[master-build-travis-badge]: https://travis-ci.org/userfrosting/assets.svg?branch=master
[master-build-appveyor-badge]: https://ci.appveyor.com/api/projects/status/github/userfrosting/assets?branch=master&svg=true
[develop]: https://github.com/userfrosting/assets/tree/develop
[develop-styleci-badge]: https://github.styleci.io/repos/55460230/shield?branch=develop&style=flat
[develop-codecov-badge]: https://codecov.io/gh/userfrosting/assets/branch/develop/graph/badge.svg
[develop-build-travis-badge]: https://travis-ci.org/userfrosting/assets.svg?branch=develop
[develop-build-appveyor-badge]: https://ci.appveyor.com/api/projects/status/github/userfrosting/assets?branch=develop&svg=true
[Assets]: https://github.com/userfrosting/assets
[Assets-develop]: https://github.com/userfrosting/assets/tree/develop
[assets-version]: https://img.shields.io/github/release/userfrosting/assets.svg
[assets-master-build]: https://github.com/userfrosting/assets/workflows/Build/badge.svg?branch=master
[assets-master-codecov]: https://codecov.io/gh/userfrosting/assets/branch/master/graph/badge.svg
[assets-develop-build]: https://github.com/userfrosting/assets/workflows/Build/badge.svg?branch=develop
[assets-develop-codecov]: https://codecov.io/gh/userfrosting/assets/branch/develop/graph/badge.svg
[assets-releases]: https://github.com/userfrosting/assets/releases
[assets-travis]: https://github.com/userfrosting/assets/actions?query=workflow%3ABuild
[assets-codecov]: https://codecov.io/gh/userfrosting/assets
[assets-style-master]: https://github.styleci.io/repos/55460230/shield?branch=master&style=flat
[assets-style-develop]: https://github.styleci.io/repos/55460230/shield?branch=develop&style=flat
[assets-style]: https://github.styleci.io/repos/55460230

**Assets** is a library originally created for UserFrosting 4 to make it much easier to reference frontend assets in both production and development contexts.

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.13",
"phpunit/phpunit": "^7.5",
"phpunit/phpunit": "^7.5 | ^8.5",
"slim/slim": "^3"
},
"suggest": {
Expand Down
4 changes: 4 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,8 @@
<directory suffix=".php">src/</directory>
</whitelist>
</filter>
<logging>
<log type="coverage-html" target="_meta/coverage"/>
<log type="coverage-clover" target="_meta/coverage.xml"/>
</logging>
</phpunit>
4 changes: 0 additions & 4 deletions tests/AssetBundles/GulpBundleAssetsCompiledBundlesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ public function testConstructInvalidJsBundle()
*
* @param GulpBundleAssetsCompiledBundles $bundles
*
* @return void
*
* @depends testConstruct
*/
Expand All @@ -71,7 +70,6 @@ public function testGetCssBundleAssets(GulpBundleAssetsCompiledBundles $bundles)
*
* @param GulpBundleAssetsCompiledBundles $bundles
*
* @return void
*
* @depends testConstruct
*/
Expand All @@ -86,7 +84,6 @@ public function testGetCssBundleAssetsOutOfRange(GulpBundleAssetsCompiledBundles
*
* @param GulpBundleAssetsCompiledBundles $bundles
*
* @return void
*
* @depends testConstruct
*/
Expand All @@ -102,7 +99,6 @@ public function testGetJsBundleAssets(GulpBundleAssetsCompiledBundles $bundles)
*
* @param GulpBundleAssetsCompiledBundles $bundles
*
* @return void
*
* @depends testConstruct
*/
Expand Down
4 changes: 0 additions & 4 deletions tests/AssetBundles/GulpBundleAssetsRawBundlesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ public function testConstructInvalidJsBundle()
*
* @param GulpBundleAssetsRawBundles $bundles
*
* @return void
*
* @depends testConstruct
*/
Expand All @@ -109,7 +108,6 @@ public function testGetCssBundleAssets(GulpBundleAssetsRawBundles $bundles)
*
* @param GulpBundleAssetsRawBundles $bundles
*
* @return void
*
* @depends testConstruct
*/
Expand All @@ -124,7 +122,6 @@ public function testGetCssBundleAssetsOutOfRange(GulpBundleAssetsRawBundles $bun
*
* @param GulpBundleAssetsRawBundles $bundles
*
* @return void
*
* @depends testConstruct
*/
Expand All @@ -141,7 +138,6 @@ public function testGetJsBundleAssets(GulpBundleAssetsRawBundles $bundles)
*
* @param GulpBundleAssetsRawBundles $bundles
*
* @return void
*
* @depends testConstruct
*/
Expand Down
9 changes: 1 addition & 8 deletions tests/AssetsTemplatePluginTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,8 @@ class AssetsTemplatePluginTest extends TestCase

/**
* Initializes test environment.
*
* @return void
*/
public function setUp()
public function setUp(): void
{
$this->basePath = __DIR__.'/data';
$this->baseUrl = 'https://assets.userfrosting.com/assets/';
Expand Down Expand Up @@ -67,7 +65,6 @@ public function testConstructAssetsTemplatePlugin()
*
* @param AssetsTemplatePlugin $plugin
*
* @return void
*
* @depends testConstructAssetsTemplatePlugin
*/
Expand All @@ -81,7 +78,6 @@ public function testJsBundle(AssetsTemplatePlugin $plugin)
*
* @param AssetsTemplatePlugin $plugin
*
* @return void
*
* @depends testConstructAssetsTemplatePlugin
*/
Expand All @@ -95,7 +91,6 @@ public function testJsBundleWithAttributes(AssetsTemplatePlugin $plugin)
*
* @param AssetsTemplatePlugin $plugin
*
* @return void
*
* @depends testConstructAssetsTemplatePlugin
*/
Expand All @@ -109,7 +104,6 @@ public function testCssBundle(AssetsTemplatePlugin $plugin)
*
* @param AssetsTemplatePlugin $plugin
*
* @return void
*
* @depends testConstructAssetsTemplatePlugin
*/
Expand All @@ -123,7 +117,6 @@ public function testCssBundleWithAttributes(AssetsTemplatePlugin $plugin)
*
* @param AssetsTemplatePlugin $plugin
*
* @return void
*
* @depends testConstructAssetsTemplatePlugin
*/
Expand Down
Loading

0 comments on commit 66e1033

Please sign in to comment.