Skip to content

Commit

Permalink
feat(ci): GitHub-ci for c-tests
Browse files Browse the repository at this point in the history
Signed-off-by: Anupam Ghosh <[email protected]>
  • Loading branch information
ag4ums authored and GMishx committed Oct 29, 2021
1 parent 14394ec commit 31dd1c4
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/test-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Copyright 2021 Anupam Ghosh <[email protected]>
# SPDX-License-Identifier: GPL-2.0 AND LGPL-2.

name: c tests

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
C-tests:
runs-on: ubuntu-20.04
services:
postgres:
image: postgres:12
env:
POSTGRES_DB: fossology
POSTGRES_PASSWORD: fossy
POSTGRES_USER: fossy
ports:
- 5432:5432
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 50

- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y libcppunit-dev
sudo ./utils/fo-installdeps -y -e
export PATH="/usr/lib/ccache/:$PATH"
- name: Setup test database
env:
DATABASE_HOST: 127.0.0.1
DATABASE_PORT: 5432
run: |
sudo ./utils/prepare-test
#remove test all as delagent is failing
- name: Unit tests
run: make all phpvendors test-cli test-copyright test-lib test-nomos test-ojo test-reuser test-scheduler test-spdx2 test-unifiedreport test-www

0 comments on commit 31dd1c4

Please sign in to comment.