Skip to content

Commit bae362a

Browse files
authored
Merge pull request #35 from programmatordev/1.x
1.x
2 parents 355714d + 51186ab commit bae362a

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

.github/workflows/ci.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- "*.x"
7+
pull_request:
8+
9+
jobs:
10+
tests:
11+
name: PHP ${{ matrix.php }} Test
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
php: ['8.1', '8.2']
16+
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v3
20+
21+
- name: Setup PHP
22+
uses: shivammathur/setup-php@v2
23+
with:
24+
php-version: ${{ matrix.php }}
25+
tools: composer:v2
26+
coverage: none
27+
28+
- name: Install dependencies
29+
run: composer update --prefer-dist --no-interaction --no-progress
30+
31+
- name: Execute tests
32+
run: vendor/bin/phpunit

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# OpenWeatherMap PHP API
22

3-
OpenWeatherMap PHP library that provides convenient access to the OpenWeatherMap API.
3+
[![Latest Version](https://img.shields.io/github/release/programmatordev/openweathermap-php-api.svg?style=flat-square)](https://github.com/programmatordev/openweathermap-php-api/releases)
4+
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)
5+
[![Tests](https://github.com/programmatordev/openweathermap-php-api/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/programmatordev/openweathermap-php-api/actions/workflows/ci.yml?query=branch%3Amain)
6+
7+
OpenWeatherMap PHP library that provides convenient access to the OpenWeatherMap API.
48

59
Supports [PSR-18 HTTP clients](https://www.php-fig.org/psr/psr-18), [PSR-17 HTTP factories](https://www.php-fig.org/psr/psr-17), [PSR-6 caches](https://www.php-fig.org/psr/psr-6) and [PSR-3 logs](https://www.php-fig.org/psr/psr-3).
610

0 commit comments

Comments
 (0)