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

Updated package versions and added native types #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/test export-ignore
phpunit.xml export-ignore
README.md export-ignore
.github export-ignore
9 changes: 9 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "composer" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
40 changes: 40 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Tests

on:
pull_request:
push:
branches: [master, main]

jobs:
test:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
php: [8.0, 8.1]
stability: [prefer-lowest, prefer-stable]

name: PHP ${{ matrix.php }} - ${{ matrix.stability }} Test

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pdo
ini-values: error_reporting=E_ALL
tools: composer:v2
coverage: none

- name: Install dependencies
uses: nick-invision/retry@v2
with:
timeout_minutes: 5
max_attempts: 5
command: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress

- name: Run tests
run: ./vendor/bin/phpunit --verbose
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# CODE EDITORS
.idea
.vscode

# COMPOSER
vendor/

# OS FILES
composer.lock
.DS_Store
Desktop.ini
._*
Expand Down
10 changes: 1 addition & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Requirements

PHP 5.4.0 and later
PHP 8.0.0 and later

## Installation & Usage
### Composer
Expand All @@ -12,14 +12,6 @@ To install the bindings via [Composer](http://getcomposer.org/) run:
composer require autodesk/core
```

### Manual Installation

Download the files and include `autoload.php`:

```php
require_once('/path/to/AutodeskCore/autoload.php');
```

## Tests

To run the unit tests:
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
}
],
"require": {
"php": ">=5.4",
"php": ">=8.0",
"ext-curl": "*",
"ext-json": "*",
"ext-mbstring": "*",
"guzzlehttp/guzzle": "^6.2"
"guzzlehttp/guzzle": "^7.0"
},
"require-dev": {
"phpunit/phpunit": "~5.0",
"symfony/var-dumper": "^3.2"
"phpunit/phpunit": "^9.0",
"symfony/var-dumper": "^6.0"
},
"autoload": {
"psr-4": {
Expand All @@ -33,7 +33,7 @@
},
"autoload-dev": {
"psr-4": {
"Autodesk\\Core\\": "test/"
"Autodesk\\Core\\Test\\": "test/"
}
}
}
Loading