.github: setup GitHub related things (#13)
- Added Github Actions - Replaced `ISSUE_TEMPLATE.md`
This commit is contained in:
parent
7e821b874b
commit
689cca66c4
17
.github/ISSUE_TEMPLATE.md
vendored
Normal file
17
.github/ISSUE_TEMPLATE.md
vendored
Normal 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
21
.github/workflows/go.yml
vendored
Normal 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"},
|
||||
],
|
||||
},
|
||||
},
|
||||
}
|
@ -1 +0,0 @@
|
||||
|
2
Makefile
2
Makefile
@ -10,7 +10,7 @@ build:
|
||||
go build ./cmd/...
|
||||
|
||||
test:
|
||||
go test ./...
|
||||
go test -v ./...
|
||||
|
||||
cover:
|
||||
go test ./... --cover
|
||||
|
@ -6,7 +6,7 @@ PHP Parser written in Go
|
||||
<img src="./parser.jpg" alt="PHP Parser written in Go" width="980"/>
|
||||
|
||||
[](https://godoc.org/github.com/VKCOM/php-parser)
|
||||
[](https://travis-ci.org/z7zmey/php-parser)
|
||||
[](https://github.com/VKCOM/php-parser/workflows/Go)
|
||||
[](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.
|
||||
|
Loading…
Reference in New Issue
Block a user