From b57620c700b649a1cfeda5eae226f65bb2b7161f Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Mon, 7 Sep 2026 18:38:33 -0700 Subject: [PATCH] Run the tests in GitHub Actions and drop .travis.yml Travis stopped serving open source projects in 2021, so the config here has not run since and the OTP releases it names are long out of support. It is deleted rather than ported: there is nothing worth carrying over. Replaced with a GitHub Actions workflow compiling and running eunit on OTP 26, 27 and 28 -- 26 being what chef-server currently pins, with 27 and 28 covered so regressions surface before that pin moves. The suite needed no changes: 118 tests pass on all three, verified in containers from a clean _build. Dialyzer is clean, so it gates. .gitignore gains _build/ where it was missing; the existing entries predate rebar3, so a build leaves the tree dirty. Signed-off-by: Tim Smith --- .github/workflows/ci.yml | 37 +++++++++++++++++++++++++++++++++++++ .travis.yml | 12 ------------ 2 files changed, 37 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..788d7b3 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,37 @@ +name: CI + +on: + push: + branches: [main, master] + pull_request: + +permissions: + contents: read + +jobs: + test: + name: OTP ${{ matrix.otp }} + runs-on: ubuntu-latest + container: + image: erlang:${{ matrix.otp }} + strategy: + fail-fast: false + matrix: + # 26 is what chef-server currently pins; 27 and 28 are covered so + # regressions surface before that pin moves. + otp: ['26', '27', '28'] + steps: + - uses: actions/checkout@v4 + - name: Compile + run: rebar3 compile + - name: EUnit + run: rebar3 eunit + + dialyzer: + name: Dialyzer + runs-on: ubuntu-latest + container: + image: erlang:26 + steps: + - uses: actions/checkout@v4 + - run: rebar3 dialyzer diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index edc4a9b..0000000 --- a/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: erlang -otp_release: - - 21.0 - - 20.3 - - 19.3 - - 18.3 - - 17.5 - - R16B03 -script: - - make test -before_script: - - "kerl list installations"