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"