diff --git a/.github/workflows/unittests.yml b/.github/workflows/unittests.yml new file mode 100644 index 00000000..f2067efd --- /dev/null +++ b/.github/workflows/unittests.yml @@ -0,0 +1,27 @@ +name: masscan unit tests + +on: + push: + branches: [master] + pull_request: + # The branches below must be a subset of the branches above + branches: [master] + +permissions: + contents: read + +jobs: + regress: + name: Run regression tests + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest] + steps: + - name: Checkout masscan + uses: actions/checkout@v3 + - name: Install libpcap-dev + if: ${{ vars.RUNNER_OS == 'Linux' }} + run: sudo apt-get install -y libpcap-dev + - name: Run regression tests + run: make test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 701dbd56..00000000 --- a/.travis.yml +++ /dev/null @@ -1,24 +0,0 @@ -# This is a build/test script for "travis-ci", a continuous -# integration website that will build and test this project -# every time something is submitted, and send me email if -# the test breaks -arch: - - amd64 - - ppc64le -language: c - -os: - - linux - - osx - -compiler: - - gcc - - clang - -before_install: - - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y libpcap-dev; fi - -script: - - make test - -