Skip to content

Commit 76b2c7d

Browse files
Move to GitHub Actions (#29)
* Add GitHub workflow * Remove travis config file and add GH status badge * Add dependabot config for GH actions * Add php 7.3 back to test matrix * Run composer update --------- Co-authored-by: Viktor Szépe <viktor@szepe.net>
1 parent 6ef4fa6 commit 76b2c7d

File tree

5 files changed

+61
-25
lines changed

5 files changed

+61
-25
lines changed

.github/dependabot.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Configure Dependabot scanning.
2+
version: 2
3+
4+
updates:
5+
# Check for updates to GitHub Actions.
6+
- package-ecosystem: "github-actions"
7+
directory: "/"
8+
schedule:
9+
interval: "monthly"
10+
open-pull-requests-limit: 10
11+
groups:
12+
github-actions:
13+
patterns:
14+
- "*"

.github/workflows/test.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: "PHP Tests"
2+
3+
on:
4+
push:
5+
branches:
6+
- "master"
7+
pull_request: null
8+
9+
permissions:
10+
contents: "read"
11+
12+
jobs:
13+
test:
14+
runs-on: "ubuntu-latest"
15+
16+
strategy:
17+
matrix:
18+
php-version:
19+
- "7.3"
20+
- "7.4"
21+
- "8.0"
22+
- "8.1"
23+
- "8.2"
24+
- "8.3"
25+
- "8.4"
26+
27+
steps:
28+
- name: "Checkout repository"
29+
uses: "actions/checkout@v4"
30+
31+
- name: "Set up PHP"
32+
uses: "shivammathur/setup-php@v2"
33+
with:
34+
coverage: "none"
35+
php-version: "${{ matrix.php-version }}"
36+
37+
- name: "Vadliate composer"
38+
run: "composer validate --strict"
39+
40+
- name: "Install dependencies"
41+
run: "composer update --no-interaction"
42+
43+
- run: "composer run test"

.travis.yml

-24
This file was deleted.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# PHP Stubs Generator
22

3-
[![Build Status](https://travis-ci.com/php-stubs/generator.svg?branch=master)](https://travis-ci.com/github/php-stubs/generator)
3+
[![Build Status](https://github.com/php-stubs/generator/actions/workflows/test.yml/badge.svg)](https://github.com/php-stubs/generator/actions/workflows/test.yml)
44

55
Use this tool to generate stub declarations for functions, classes, interfaces, and global variables defined in any PHP code. The stubs can subsequently be used to facilitate IDE completion or static analysis via [PHPStan](https://phpstan.org) or potentially other tools. Stub generation is particularly useful for code which mixes definitions with side-effects.
66

composer.json

+3
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,8 @@
3333
"vimeo/psalm": "^4.1",
3434
"phpunit/phpunit": "^9.4",
3535
"friendsofphp/php-cs-fixer": "^2.16 || ^3.12"
36+
},
37+
"scripts": {
38+
"test": "phpunit --verbose"
3639
}
3740
}

0 commit comments

Comments
 (0)