Skip to content

Commit

Permalink
Add action on README file. (#263)
Browse files Browse the repository at this point in the history
* ci: Add action on README file.

* doc: Update README.

Prettify it.

* ci: Update and simplfy actions.
  • Loading branch information
drupol authored Aug 23, 2022
1 parent 7f43d4b commit 0e12a06
Show file tree
Hide file tree
Showing 8 changed files with 222 additions and 165 deletions.
8 changes: 7 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 4
max_line_length = 120

[*.{json,json.dist,yml,yml.dist}]
indent_size = 4
indent_size = 4
max_line_length = 120

[*.{md}]
indent_size = 2
max_line_length = 80
4 changes: 4 additions & 0 deletions .github/workflows/code-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@

on:
push:
paths:
- "src/**.php"
branches:
- master
pull_request:
paths:
- "src/**.php"

name: "Code style"

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/mutation-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@

on:
push:
paths:
- "src/**.php"
branches:
- master
pull_request:
paths:
- "src/**.php"

name: "Mutations testing"

Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/readme.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: README checks

# This action works with pull requests and pushes
on:
pull_request:
push:
branches:
- main

jobs:
prettier:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install the Nix package manager
uses: cachix/install-nix-action@v17

- name: Check README
run: nix run nixpkgs#nodePackages.prettier -- --check README.md
4 changes: 4 additions & 0 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@

on:
push:
paths:
- "src/**.php"
branches:
- master
pull_request:
paths:
- "src/**.php"

name: "Static analysis"

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@

on:
push:
paths:
- "src/**.php"
branches:
- master
pull_request:
paths:
- "src/**.php"

name: "Unit tests"

Expand Down
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"tabWidth": 2,
"useTabs": false,
"proseWrap": "always"
}
Loading

0 comments on commit 0e12a06

Please sign in to comment.