mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-14 13:16:17 +00:00
Run unit test in workflow PR.
This commit is contained in:
@@ -8,10 +8,9 @@ jobs:
|
|||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install clang-tidy
|
- name: Update Packages
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y bear clang-tidy libcurl4-openssl-dev
|
|
||||||
- name: Fetch libtorrent
|
- name: Fetch libtorrent
|
||||||
run: |
|
run: |
|
||||||
git clone https://github.com/rakshasa/libtorrent
|
git clone https://github.com/rakshasa/libtorrent
|
||||||
@@ -36,6 +35,9 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
git remote add upstream "https://github.com/${{ github.event.pull_request.base.repo.full_name }}"
|
git remote add upstream "https://github.com/${{ github.event.pull_request.base.repo.full_name }}"
|
||||||
git fetch --no-tags --no-recurse-submodules upstream "${{ github.event.pull_request.base.ref }}"
|
git fetch --no-tags --no-recurse-submodules upstream "${{ github.event.pull_request.base.ref }}"
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: |
|
||||||
|
sudo apt-get install -y bear clang-tidy libcurl4-openssl-dev
|
||||||
- name: Configure Project
|
- name: Configure Project
|
||||||
run: |
|
run: |
|
||||||
libtoolize
|
libtoolize
|
||||||
@@ -76,3 +78,55 @@ jobs:
|
|||||||
# to avoid GitHub API timeouts for heavily loaded
|
# to avoid GitHub API timeouts for heavily loaded
|
||||||
# pull requests
|
# pull requests
|
||||||
suggestions_per_comment: 10
|
suggestions_per_comment: 10
|
||||||
|
|
||||||
|
|
||||||
|
unit-tests:
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Update Packages
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
- name: Fetch libtorrent
|
||||||
|
run: |
|
||||||
|
git clone https://github.com/rakshasa/libtorrent
|
||||||
|
- name: Build libtorrent
|
||||||
|
run: |
|
||||||
|
cd libtorrent
|
||||||
|
libtoolize
|
||||||
|
aclocal -I scripts
|
||||||
|
autoconf -i
|
||||||
|
autoheader
|
||||||
|
automake --add-missing
|
||||||
|
./configure
|
||||||
|
make
|
||||||
|
sudo make install
|
||||||
|
cd ..
|
||||||
|
rm -rf libtorrent
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: Fetch base branch
|
||||||
|
run: |
|
||||||
|
git remote add upstream "https://github.com/${{ github.event.pull_request.base.repo.full_name }}"
|
||||||
|
git fetch --no-tags --no-recurse-submodules upstream "${{ github.event.pull_request.base.ref }}"
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: |
|
||||||
|
sudo apt-get install -y \
|
||||||
|
libcppunit-dev \
|
||||||
|
libcurl4-openssl-dev
|
||||||
|
- name: Configure Project
|
||||||
|
run: |
|
||||||
|
libtoolize
|
||||||
|
aclocal -I scripts
|
||||||
|
autoconf -i
|
||||||
|
autoheader
|
||||||
|
automake --add-missing
|
||||||
|
./configure
|
||||||
|
- name: Build Project
|
||||||
|
run: |
|
||||||
|
make
|
||||||
|
- name: Run Unit Tests
|
||||||
|
run: |
|
||||||
|
make check
|
||||||
|
|||||||
Reference in New Issue
Block a user