mirror of
https://github.com/ivuorinen/paperboy.git
synced 2026-02-28 19:56:26 +00:00
chore: Tweak test-build & readme, add editorconfig (#9)
This commit is contained in:
14
.editorconfig
Normal file
14
.editorconfig
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
charset = utf-8
|
||||||
|
end_of_line = lf
|
||||||
|
indent_size = 2
|
||||||
|
indent_style = space
|
||||||
|
insert_final_newline = true
|
||||||
|
max_line_length = 160
|
||||||
|
tab_width = 2
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
|
||||||
|
[Makefile]
|
||||||
|
tab_width = 4
|
||||||
6
.github/README.md
vendored
6
.github/README.md
vendored
@@ -34,7 +34,11 @@ output: output.md
|
|||||||
Generated by [paperboy](https://github.com/ivuorinen/paperboy)
|
Generated by [paperboy](https://github.com/ivuorinen/paperboy)
|
||||||
```
|
```
|
||||||
|
|
||||||
The contents is rendered between the two `---` lines.
|
The contents are rendered between the two `---` lines.
|
||||||
|
|
||||||
|
Then run the binary `paperboy` and the output will be written to the file specified in the `config.yaml` file.
|
||||||
|
|
||||||
|
ProTip: Use a cron job to run this weekly and send the output to your email.
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
|||||||
33
.github/workflows/test-build.yml
vendored
33
.github/workflows/test-build.yml
vendored
@@ -1,25 +1,28 @@
|
|||||||
# This workflow will build a golang project
|
---
|
||||||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
|
name: Test Build and Run
|
||||||
|
|
||||||
name: Test Build
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
branches: ["main"]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "main" ]
|
branches: ["main"]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
test-build-and-run:
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: '1.22'
|
go-version: "1.22"
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: make build
|
run: make build
|
||||||
|
|
||||||
|
- name: Setup default template and config
|
||||||
|
run: cp examples/* .
|
||||||
|
|
||||||
|
- name: Run program
|
||||||
|
run: ./paperboy
|
||||||
|
|||||||
Reference in New Issue
Block a user