A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.github.com/setnemo/asterisk-notation/commit/dd0b01436eec40689c3a8082d3d8d0a40d996de3 below:

initial commit · setnemo/asterisk-notation@dd0b014 · GitHub

File tree Expand file treeCollapse file tree 26 files changed

+1542

-0

lines changed

Filter options

Expand file treeCollapse file tree 26 files changed

+1542

-0

lines changed Original file line number Diff line number Diff line change

@@ -0,0 +1,58 @@

1 +

name: Actions

2 + 3 +

on:

4 +

pull_request:

5 +

branches: [main]

6 +

push:

7 +

branches: [main]

8 + 9 +

jobs:

10 +

build:

11 +

runs-on: ubuntu-latest

12 +

strategy:

13 +

matrix:

14 +

node: ['7.4', '8.0']

15 +

steps:

16 +

- name: Checkout

17 +

uses: actions/checkout@v2

18 +

- name: Get Composer Cache Directory

19 +

id: composer-cache

20 +

run: |

21 +

echo "::set-output name=dir::$(composer config cache-files-dir)"

22 +

- uses: actions/cache@v1

23 +

with:

24 +

path: ${{ steps.composer-cache.outputs.dir }}

25 +

key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}

26 +

restore-keys: |

27 +

${{ runner.os }}-composer-

28 +

- name: Composer validate

29 +

run: composer validate

30 +

- name: Composer Install

31 +

run: composer install --dev --no-interaction --no-ansi --prefer-dist --no-suggest

32 +

- name: PSR12 check

33 +

run: make psr12-check

34 +

- name: Psalm check

35 +

run: make psalm

36 +

- name: Setup PHP with pre-release PECL extension

37 +

uses: shivammathur/setup-php@v2

38 +

with:

39 +

php-version: ${{ matrix.node }}

40 +

extensions: xdebug-beta

41 +

- name: Run tests

42 +

run: make tests-coverage

43 +

- name: Changes path in output files after tests with coverage to relative github actions path

44 +

run: |

45 +

pwd

46 +

cat ./tests/_output/*

47 +

sed -i 's!/home/runner/work/asterisk-notation/asterisk-notation/!/github/workspace/!g' $(find ./tests/_output/ -type f) | true

48 +

- name: SonarCloud Scan

49 +

uses: sonarsource/sonarcloud-github-action@master

50 +

env:

51 +

GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

52 +

SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

53 +

with:

54 +

args: >

55 +

-Dsonar.organization=omentes

56 +

-Dsonar.host.url=https://sonarcloud.io/

57 +

-Dsonar.projectKey=setnemo_asterisk-notation

58 +

-Dsonar.exlusions=vendor

Original file line number Diff line number Diff line change

@@ -0,0 +1,14 @@

1 +

name: Release

2 + 3 +

on:

4 +

push:

5 +

branches:

6 +

- main

7 +

jobs:

8 +

release-please:

9 +

runs-on: ubuntu-latest

10 +

steps:

11 +

- uses: GoogleCloudPlatform/release-please-action@v2

12 +

with:

13 +

release-type: php

14 +

package-name: release-please-action

Original file line number Diff line number Diff line change

@@ -0,0 +1,2 @@

1 +

composer.lock

2 +

vendor

Original file line number Diff line number Diff line change

@@ -0,0 +1,11 @@

1 +

# Contribution Guideline

2 + 3 +

- install [make](https://man7.org/linux/man-pages/man1/make.1.html)

4 +

- [fork this repository]((https://github.com/setnemo/asterisk-notation/fork))

5 +

- clone you fork

6 +

- create new feature/fix branch, name like fix_bug_bla_bla or feature_bla_bla_bla

7 +

- install composer dependencies `composer install`

8 +

- write code according PSR-12 Standard and don't forget about unit tests

9 +

- check PSR with command `make psr12-check` and fix it with command `make psr12-fix`

10 +

- commit you work, also write commit message according [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/)

11 +

- push you work and create pull request

Original file line number Diff line number Diff line change

@@ -0,0 +1,21 @@

1 +

MIT License

2 + 3 +

Copyright (c) 2021 Artem Pakhomov

4 + 5 +

Permission is hereby granted, free of charge, to any person obtaining a copy

6 +

of this software and associated documentation files (the "Software"), to deal

7 +

in the Software without restriction, including without limitation the rights

8 +

to use, copy, modify, merge, publish, distribute, sublicense, and/or sell

9 +

copies of the Software, and to permit persons to whom the Software is

10 +

furnished to do so, subject to the following conditions:

11 + 12 +

The above copyright notice and this permission notice shall be included in all

13 +

copies or substantial portions of the Software.

14 + 15 +

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR

16 +

IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,

17 +

FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE

18 +

AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER

19 +

LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,

20 +

OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE

21 +

SOFTWARE.

Original file line number Diff line number Diff line change

@@ -0,0 +1,68 @@

1 +

SHELL ?= /bin/bash

2 +

ARGS = $(filter-out $@,$(MAKECMDGOALS))

3 + 4 +

YELLOW=\033[0;33m

5 +

BLUE=\033[0;34m

6 +

BOLDGREEN=\033[1;32m

7 + 8 +

.SILENT: ;

9 +

.ONESHELL: ;

10 +

.NOTPARALLEL: ;

11 +

.EXPORT_ALL_VARIABLES: ;

12 +

Makefile: ;

13 + 14 +

.DEFAULT_GOAL := help

15 + 16 +

.PHONY: psr12-fix

17 +

psr12-fix:

18 +

php vendor/bin/phpcbf --standard=psr12 src -n tests -n

19 + 20 +

.PHONY: psr12-check

21 +

psr12-check:

22 +

php vendor/bin/phpcs --standard=psr12 src -n tests -n

23 + 24 +

.PHONY: psalm

25 +

psalm:

26 +

php vendor/bin/psalm

27 + 28 +

.PHONY: install

29 +

install:

30 +

composer install --dev

31 + 32 +

.PHONY: tests-build

33 +

tests-build:

34 +

vendor/bin/codecept build

35 + 36 +

.PHONY: tests

37 +

tests: tests-build

38 +

vendor/bin/codecept run

39 + 40 +

.PHONY: tests-coverage

41 +

tests-coverage:

42 +

vendor/bin/codecept run --coverage-xml --xml

43 + 44 + 45 +

.PHONY: tests-run

46 +

tests-run: tests-build

47 +

vendor/bin/codecept run ${ARGS}

48 + 49 +

.PHONY: default

50 +

default: help

51 + 52 +

.PHONY: help

53 +

help: .title

54 +

printf '\n'

55 +

printf "${BOLDGREEN}Available targets:${NC}\n"

56 +

printf '\n'

57 +

printf "${BLUE}make help${NC}: ${YELLOW}Show this help${NC}\n"

58 +

printf "${BLUE}make install${NC}: ${YELLOW}Install composer dependencies${NC}\n"

59 +

printf "${BLUE}make psr12-check${NC}: ${YELLOW}Check code in app and tests directory according PSR12 standards${NC}\n"

60 +

printf "${BLUE}make psr12-fix${NC}: ${YELLOW}Fix code in app and tests directory according PSR12 standards${NC}\n"

61 +

printf "${BLUE}make psalm${NC}: ${YELLOW}Check code in app directory via psalm${NC}\n"

62 +

printf "${BLUE}make tests${NC}: ${YELLOW}Run tests in tests container${NC}\n"

63 +

printf "${BLUE}make tests-build${NC}: ${YELLOW}Run codecept build in app container${NC}\n"

64 +

printf "${BLUE}make tests-run${NC}: ${YELLOW}Run custom codecept test, for example: make tests-run {PATH_TO_FILE} ${NC}\n"

65 +

printf '\n'

66 + 67 +

%:

68 +

@:

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4