From a1f8773953f24effbd9e1820adf46cbef09cd52c Mon Sep 17 00:00:00 2001 From: Orsiris de Jong Date: Thu, 7 Jul 2022 11:05:40 +0200 Subject: [PATCH 1/3] Add github actions workflow --- .github/workflows/linux.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/linux.yml diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml new file mode 100644 index 0000000..0d3dd84 --- /dev/null +++ b/.github/workflows/linux.yml @@ -0,0 +1,22 @@ +name: linux-tests + +on: [push, pull_request] + +jobs: + build: + + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest] + steps: + - name: Install dependencies + run: | + sudo apt-get intall inotify-tools acl + - name: Execute tests and generate coverage report + env: + RUNNING_ON_GITHUB_ACTIONS: true + run: | + dev/tests/run_tests.sh + - name: Upload Coverage to Codecov + uses: codecov/codecov-action@v1 From 9245030a9d5a2ac5e6ff942b79e4ad24fc324d8c Mon Sep 17 00:00:00 2001 From: Orsiris de Jong Date: Thu, 7 Jul 2022 11:06:26 +0200 Subject: [PATCH 2/3] Fix typo --- .github/workflows/linux.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 0d3dd84..9ace247 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -12,7 +12,7 @@ jobs: steps: - name: Install dependencies run: | - sudo apt-get intall inotify-tools acl + sudo apt-get install inotify-tools acl - name: Execute tests and generate coverage report env: RUNNING_ON_GITHUB_ACTIONS: true From 7168aa9d024a0e58539f699f44d1bd46c691b134 Mon Sep 17 00:00:00 2001 From: Orsiris de Jong Date: Thu, 7 Jul 2022 11:12:19 +0200 Subject: [PATCH 3/3] Make sure we can run tests --- .github/workflows/linux.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 9ace247..46cb614 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -17,6 +17,7 @@ jobs: env: RUNNING_ON_GITHUB_ACTIONS: true run: | - dev/tests/run_tests.sh + ls -alh ./ + sh ./dev/tests/run_tests.sh - name: Upload Coverage to Codecov uses: codecov/codecov-action@v1