From 35b823a0d1d3fff0644ffa61c8d4f3c4437cc943 Mon Sep 17 00:00:00 2001 From: Serhii Kostiushkin Date: Tue, 28 Jan 2025 11:28:48 +0200 Subject: [PATCH] Add builds for all latest versions of Erlang/OTP --- .github/workflows/ci.yml | 38 ++++++++++++++++++++++++++++++++++++ .github/workflows/erlang.yml | 31 ----------------------------- 2 files changed, 38 insertions(+), 31 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .github/workflows/erlang.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..76fd001 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,38 @@ +name: Build and Test Erlang Application + +on: + push: + branches: + - master + pull_request: + branches: + - master + schedule: + ## Every Monday at 2am. + - cron: 0 2 * * 1 + +jobs: + build-and-test: + runs-on: ubuntu-18.04 + strategy: + matrix: + erlang-version: [17.5, 18.3, 19.3, 20.3, 21.3, 22.3, 23.3, 24.3, 25.3] + steps: + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Set up Erlang/OTP + uses: erlef/setup-beam@v1 + with: + otp-version: ${{ matrix.erlang-version }} + + - name: Build Project + run: make + + - name: Run Tests + run: make tests + + - name: Coveralls + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: rebar3 as test coveralls send diff --git a/.github/workflows/erlang.yml b/.github/workflows/erlang.yml deleted file mode 100644 index a8db970..0000000 --- a/.github/workflows/erlang.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Erlang CI - -on: - push: - branches: [ "master" ] - pull_request: - branches: [ "master" ] - -permissions: - contents: read - -jobs: - - build: - - runs-on: ubuntu-latest - - container: - image: erlang:20.3 - - steps: - - uses: actions/checkout@v3 - - name: Compile - run: make - - name: Run tests - run: make tests - - name: Publish to coveralls.io - uses: coverallsapp/github-action@v1.1.2 - with: - github-token: ${{ github.token }} -