Skip to content

Commit

Permalink
makefile workflow updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Anatoliy Bilenko authored and Anatoliy Bilenko committed Feb 5, 2024
1 parent a624acc commit 3f6ab00
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/makefile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,8 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Install apt deps
run: sudo apt-get install -y sqlite3
- uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Run system tests
run: sudo apt-get install -y sqlite3 && \
./system-test mkdb && diff -u <(printf "629\n62\n629\n") \
<(echo "select count(*) from tick;" \
" select count(*) from relation;" \
" select count(*) from attr;" | \
sqlite3 test/observatory.db)
run: sudo apt-get install && make test
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
SHELL := /bin/bash

.PHONY: test
test: clean
./system-test mkdb
diff -u <(printf "629\n62\n629\n") <(echo "select count(*) from tick;" \
" select count(*) from relation;" \
" select count(*) from attr;" | \
sqlite3 test/observatory.db)


.PHONY: clean
clean:
./system-test clean

0 comments on commit 3f6ab00

Please sign in to comment.