Skip to content

Commit

Permalink
Added basic run tests to build workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
allinurl committed Jan 11, 2024
1 parent 01c074a commit dd1a129
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest, macOS-latest]
Expand All @@ -23,7 +23,7 @@ jobs:
- name: Setup env.
run: ${{ matrix.setup-env }}
- uses: actions/checkout@v3
- name: autoreconf
- name: autoreconf
run: autoreconf -fiv
- name: configure
run: ./configure
Expand All @@ -33,3 +33,13 @@ jobs:
run: sudo make check
- name: make distcheck
run: sudo make distcheck
- name: define log
run: |
echo -e 'localhost:80 192.168.0.1 - - [01/Jul/2013:06:27:38 -0500] "GET / HTTP/1.1" 200 3829 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) Gecko/20100101 Firefox/21.0"\
\ngoogle.com:80 ::1 - - [01/Jul/2013:06:25:11 -0500] "OPTIONS * HTTP/1.0" 200 136 "-" "Apache (internal dummy connection)"\
\nbing.com:80 142.250.190.142 - - [01/Jul/2013:06:41:31 -0500] "-" 408 0 "-" "-"\
\nyahoo.com:80 74.6.143.25 - - [01/Jul/2013:07:20:02 -0500] "HEAD / HTTP/1.1" 200 213 "-" "Wget/1.14 (linux-gnu)"' > access.log
- name: Run goaccess single thread
run: goaccess access.log --log-format=VCOMBINED -o report.html
- name: Run goaccess multi-thread
run: goaccess access.log --log-format=VCOMBINED -o report.html -j 2

0 comments on commit dd1a129

Please sign in to comment.