Skip to content

Commit cc9d212

Browse files
committed
add main.yml
1 parent 2ee23b1 commit cc9d212

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/main.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Name of workflow
2+
name: PHP CI
3+
4+
# Trigger the workflow on push or pull request
5+
on:
6+
- push
7+
- pull_request
8+
9+
jobs:
10+
# build – произвольно выбранное имя задания
11+
# их может быть больше одного
12+
build:
13+
# The type of machine to run the job on
14+
runs-on: ubuntu-latest
15+
16+
steps: # список шагов, которые надо выполнить
17+
# экшен — выполняет какую-то задачу
18+
# checkout — клонирует репозиторий
19+
# Check-out repository under GitHub workspace
20+
# https://github.com/actions/checkout
21+
- uses: actions/checkout@v4
22+
# Step's name
23+
- name: Setup PHP
24+
# Action gives to setup the PHP environment to test application
25+
# https://github.com/shivammathur/setup-php
26+
uses: shivammathur/setup-php@v2
27+
with:
28+
# Specify the PHP version
29+
php-version: '8.3'
30+
# Install project
31+
- name: Install project
32+
run: make install
33+
# Run linter
34+
- name: Run linter
35+
run: make lint

0 commit comments

Comments
 (0)