From 8f91b297f1bf3399e0abc3e1de0c3ce1801c0580 Mon Sep 17 00:00:00 2001 From: "Loren M. Lang" Date: Tue, 16 Jan 2024 01:42:00 -0800 Subject: [PATCH 1/3] Create a basic Continuous Integration test Run a program test at the end. --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..df78dae --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +name: TerminalImageViewer CI + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "*" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Install dependencies + run: sudo apt-get install -qy imagemagick + - name: Build + run: make -C src + - name: Install + run: sudo make -C src install + - name: Test + run: tiv /usr/share/pixmaps/debian-logo.png From 2b46a7a2272ccb07308d106988e90105dc6582a5 Mon Sep 17 00:00:00 2001 From: "Loren M. Lang" Date: Tue, 16 Jan 2024 01:55:04 -0800 Subject: [PATCH 2/3] Specifiy specific size and colors --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index df78dae..c86c18a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,4 +21,4 @@ jobs: - name: Install run: sudo make -C src install - name: Test - run: tiv /usr/share/pixmaps/debian-logo.png + run: tiv -w 80 -h 24 -2 /usr/share/pixmaps/debian-logo.png From ba7bafe092b373621bd398fa616bc4be921dd256 Mon Sep 17 00:00:00 2001 From: "Loren M. Lang" Date: Fri, 19 Jan 2024 11:15:19 -0800 Subject: [PATCH 3/3] Dropped install and don't restrict color palette during test --- .github/workflows/ci.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c86c18a..a798e4b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,5 @@ jobs: run: sudo apt-get install -qy imagemagick - name: Build run: make -C src - - name: Install - run: sudo make -C src install - name: Test - run: tiv -w 80 -h 24 -2 /usr/share/pixmaps/debian-logo.png + run: ./src/tiv -w 80 -h 24 /usr/share/pixmaps/debian-logo.png