Skip to content

Commit

Permalink
Merge pull request #4 from air3ijai/add_tests
Browse files Browse the repository at this point in the history
Add tests
  • Loading branch information
psemiletov authored Jan 10, 2023
2 parents c77a140 + d335ae1 commit 46a8a18
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Docker



on:
push:
branches:
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Tests


on:
push:
branches:
- '**'
paths-ignore:
- '**.md'
- 'LICENSE'
- 'TODO'
- 'templates/**'
tags:
- '*'
workflow_dispatch:


jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Prerequisites
run: |
sudo apt update
sudo apt install git make g++
- name: Build
run: make

- name: Install
run: sudo make install

- name: Test
run: make test
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,7 @@ uninstall:
install: logfilegen
install -m 0755 logfilegen $(prefix)/bin/logfilegen

test:
logfilegen --help

#.PHONY: install
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# logfilegen
The server log file generator

[![Tests](../../actions/workflows/tests.yml/badge.svg)](../../actions/workflows/tests.yml)
[![Docker](../../actions/workflows/docker.yml/badge.svg)](../../actions/workflows/docker.yml)


[Dockerhub repo](https://hub.docker.com/repository/docker/psemiletov/logfilegen/general)


Expand Down

0 comments on commit 46a8a18

Please sign in to comment.