Skip to content

Commit

Permalink
Merge 8ac67fc into 4ee6892
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriksm committed Aug 3, 2023
2 parents 4ee6892 + 8ac67fc commit 47c4779
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 13 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Test
on:
- push
- pull_request

jobs:
test:
name: Run tests
runs-on: 'ubuntu-20.04'
strategy:
fail-fast: false
matrix:
php-version:
- "7.2"
- "7.3"
- "7.4"
- "8.0"
- "8.1"
- "8.2"
steps:
- name: Dump matrix context
env:
MATRIX_CONTEXT: ${{ toJSON(matrix) }}
run: echo "$MATRIX_CONTEXT"

- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}

- name: Update composer
run: composer --verbose self-update

- name: Dump composer verson
run: composer --version

- name: Validate composer.json
run: composer --verbose validate

- name: Install dependencies
run: composer --verbose install

- name: Run tests
run: composer test

- name: Coveralls
if: matrix.php-version == 7.4
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
php vendor/bin/php-coveralls -v
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# finn-transfer-sdk
[![Build Status](https://travis-ci.org/eiriksm/finn-transfer-sdk.svg?branch=master)](https://travis-ci.org/eiriksm/finn-transfer-sdk)
[![Test](https://github.com/eiriksm/finn-transfer-sdk/actions/workflows/test.yml/badge.svg)](https://github.com/eiriksm/finn-transfer-sdk/actions/workflows/test.yml)

SDK for transferring ads to finn.no

Expand Down
5 changes: 2 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@
"email": "eirik@morland.no"
}
],
"require": {},
"require-dev": {
"phpunit/phpunit": "^6.5",
"phpunit/phpunit": "^6.5 || ^7 || ^8 || ^9",
"squizlabs/php_codesniffer": "^3.3",
"satooshi/php-coveralls": "^2.0"
"php-coveralls/php-coveralls": "^2.6"
},
"scripts": {
"test": "@composer lint && phpunit",
Expand Down

0 comments on commit 47c4779

Please sign in to comment.