.github: setup GitHub related things (#13)

- Added Github Actions
- Replaced `ISSUE_TEMPLATE.md`
This commit is contained in:
Makhnev Petr 2021-07-31 20:01:44 +03:00 committed by GitHub
parent 7e821b874b
commit 689cca66c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 40 additions and 3 deletions

17
.github/ISSUE_TEMPLATE.md vendored Normal file
View File

@ -0,0 +1,17 @@
## PHP Version
// The version on which the error is reproduced.
## Code Example
```php
// your code here
```
## Actual Behavior
// Example of incorrect error
## Expected Behavior
// Description of what you expected

21
.github/workflows/go.yml vendored Normal file
View File

@ -0,0 +1,21 @@
# This file adheres to the YAML5 style.
{
name: "Go",
on: ["push", "pull_request"],
jobs: {
build: {
name: "Build",
"runs-on": "ubuntu-latest",
steps: [
{
name: "Set up Go 1.16",
uses: "actions/setup-go@v1",
"with": {"go-version": 1.16},
id: "go",
},
{name: "Check out code into the Go module directory", uses: "actions/checkout@v1"},
{name: "Tests", run: "make test"},
],
},
},
}

View File

@ -1 +0,0 @@

View File

@ -10,7 +10,7 @@ build:
go build ./cmd/... go build ./cmd/...
test: test:
go test ./... go test -v ./...
cover: cover:
go test ./... --cover go test ./... --cover

View File

@ -6,7 +6,7 @@ PHP Parser written in Go
<img src="./parser.jpg" alt="PHP Parser written in Go" width="980"/> <img src="./parser.jpg" alt="PHP Parser written in Go" width="980"/>
[![GoDoc](https://godoc.org/github.com/VKCOM/php-parser?status.svg)](https://godoc.org/github.com/VKCOM/php-parser) [![GoDoc](https://godoc.org/github.com/VKCOM/php-parser?status.svg)](https://godoc.org/github.com/VKCOM/php-parser)
[![Build Status](https://travis-ci.org/z7zmey/php-parser.svg?branch=master)](https://travis-ci.org/z7zmey/php-parser) [![Build Status](https://github.com/VKCOM/php-parser/workflows/Go/badge.svg)](https://github.com/VKCOM/php-parser/workflows/Go)
[![Go Report Card](https://goreportcard.com/badge/github.com/VKCOM/php-parser)](https://goreportcard.com/report/github.com/VKCOM/php-parser) [![Go Report Card](https://goreportcard.com/badge/github.com/VKCOM/php-parser)](https://goreportcard.com/report/github.com/VKCOM/php-parser)
This project uses [goyacc](https://godoc.org/golang.org/x/tools/cmd/goyacc) and [ragel](https://www.colm.net/open-source/ragel/) tools to create PHP parser. It parses source code into [AST](https://en.wikipedia.org/wiki/Abstract_syntax_tree). It can be used to write static analysis, refactoring, metrics, code style formatting tools. This project uses [goyacc](https://godoc.org/golang.org/x/tools/cmd/goyacc) and [ragel](https://www.colm.net/open-source/ragel/) tools to create PHP parser. It parses source code into [AST](https://en.wikipedia.org/wiki/Abstract_syntax_tree). It can be used to write static analysis, refactoring, metrics, code style formatting tools.