Skip to content

Commit 8f9e560

Browse files
committed
update workflow
1 parent 50a549c commit 8f9e560

File tree

3 files changed

+33
-27
lines changed

3 files changed

+33
-27
lines changed

.github/workflows/master.yaml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/workflows/phpci.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: PHP CI
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
strategy:
12+
matrix:
13+
php-versions: ['7.4', '8.1']
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- name: Set up PHP ${{ matrix.php-versions }}
19+
uses: shivammathur/setup-php@v2
20+
with:
21+
php-version: ${{ matrix.php-versions }}
22+
23+
- name: Install
24+
run: make install
25+
26+
- name: Check lint
27+
run: make lint
28+
29+
- name: Execute tests
30+
run: make test

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# php-immutable-fs-trees
22

3-
[![github action status](https://github.com/hexlet-components/php-immutable-fs-trees/workflows/master/badge.svg)]((https://github.com/hexlet-components/php-immutable-fs-trees/workflows/master/badge.svg))
3+
[![github action status](https://github.com/hexlet-components/php-immutable-fs-trees/workflows/PHP%20CI/badge.svg)](../../actions)
44

55
Functions for working with trees.
66

@@ -33,6 +33,6 @@ map(fn($node) => array_merge($node, ['name' => strtoupper(getName($node))]), $tr
3333
// ]
3434
```
3535

36-
[![Hexlet Ltd. logo](https://raw.githubusercontent.com/Hexlet/assets/master/images/hexlet_logo128.png)](https://ru.hexlet.io/pages/about?utm_source=github&utm_medium=link&utm_campaign=php-eloquent-blog)
36+
[![Hexlet Ltd. logo](https://raw.githubusercontent.com/Hexlet/assets/master/images/hexlet_logo128.png)](https://ru.hexlet.io/pages/about?utm_source=github&utm_medium=link&utm_campaign=php-immutable-fs-trees)
3737

38-
This repository is created and maintained by the team and the community of Hexlet, an educational project. [Read more about Hexlet (in Russian)](https://ru.hexlet.io/pages/about?utm_source=github&utm_medium=link&utm_campaign=php-eloquent-blog).
38+
This repository is created and maintained by the team and the community of Hexlet, an educational project. [Read more about Hexlet (in Russian)](https://ru.hexlet.io/pages/about?utm_source=github&utm_medium=link&utm_campaign=php-immutable-fs-trees).

0 commit comments

Comments
 (0)