Skip to content

Commit

Permalink
Updated CI/CD.
Browse files Browse the repository at this point in the history
  • Loading branch information
oubiwann committed Jan 15, 2025
1 parent aa6a52d commit 613b0c8
Showing 1 changed file with 63 additions and 30 deletions.
93 changes: 63 additions & 30 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,64 +13,97 @@ on:

jobs:

core-builds:
new-builds:
name: Erlang ${{ matrix.otp_version }} build
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

strategy:
matrix:
otp_version: ['24.3', '25.3']
otp_version: ['27']

steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp_version }}
rebar3-version: '3.24'
- name: Install Deps
run: sudo apt-get update && sudo apt-get install -y gnuplot
- name: Compile
run: rebar3 compile
- name: Xref Checks
run: rebar3 xref
- name: Dialyzer
run: rebar3 dialyzer
- name: Proper Tests
run: rebar3 as test do compile, proper --regressions
# - name: Run Tests
# run: rebar3 ct -c
- name: Run Unit Tests
run: rebar3 as test lfe ltest -tall
# - name: Test Coverage
# run: rebar3 as test do proper -c, cover -v --min_coverage=0

stable-builds:
name: Erlang ${{ matrix.otp_version }} build
runs-on: ubuntu-24.04

strategy:
matrix:
otp_version: ['26', '25', '24']

steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp_version }}
rebar3-version: '3.22'
- name: Check rebar3 Version
run: rebar3 --version
- name: Install Deps
run: sudo apt-get update && sudo apt-get install -y gnuplot
- name: Compile
run: rebar3 compile
# - name: Xref Checks
# run: rebar3 xref
# - name: Dialyzer
# run: rebar3 dialyzer
- name: Compile Tests
run: rebar3 as test compile
- name: Xref Checks
run: rebar3 xref
- name: Dialyzer
run: rebar3 dialyzer
- name: Proper Tests
run: rebar3 as test do compile, proper --regressions
# - name: Run Tests
# run: rebar3 ct -c
- name: Run Unit Tests
run: rebar3 as test lfe ltest -tunit
- name: Run System Tests
run: rebar3 as test lfe ltest -tsystem
- name: Run Integration Tests
run: rebar3 as test lfe ltest -tintegration
run: rebar3 as test lfe ltest -tall
# - name: Test Coverage
# run: rebar3 as test do proper -c, cover -v --min_coverage=0

old-builds:
name: Old Erlang ${{ matrix.otp_version }} build
older-builds:
name: Erlang ${{ matrix.otp_version }} build
runs-on: ubuntu-20.04

strategy:
matrix:
otp_version: ['20.3', '21.3', '22.3', '23.3']
otp_version: ['23', '22', '21', '20']

steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp_version }}
rebar3-version: '3.15'
- name: Check rebar3 Version
run: rebar3 --version
- name: Install Deps
run: sudo apt-get update && sudo apt-get install -y gnuplot
- name: Compile
run: rebar3 compile
# - name: Xref Checks
# run: rebar3 xref
# - name: Dialyzer
# run: rebar3 dialyzer
- name: Xref Checks
run: rebar3 xref
- name: Dialyzer
run: rebar3 dialyzer
- name: Compile Tests
run: rebar3 as test compile
- name: Proper Tests
run: rebar3 as test proper --regressions
# - name: Run Tests
# run: rebar3 ct -c
- name: Run Unit Tests
run: rebar3 as test lfe ltest -tunit
- name: Run System Tests
run: rebar3 as test lfe ltest -tsystem
- name: Run Integration Tests
run: rebar3 as test lfe ltest -tintegration
run: rebar3 as test lfe ltest -tall
# - name: Test Coverage
# run: rebar3 as test do proper -c, cover -v --min_coverage=0

0 comments on commit 613b0c8

Please sign in to comment.