Skip to content

Commit

Permalink
Updated CI/CD.
Browse files Browse the repository at this point in the history
  • Loading branch information
oubiwann committed Jun 21, 2023
1 parent fb582c7 commit b896a47
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,31 @@
name: ci/cd

on:
workflow_dispatch:
push:
branches: [ master, release/*]
branches: [ main, 'release/*' ]
pull_request:
branches: [ master, release/*]
branches: [ main, 'release/*' ]
# Build once a month, just to be sure things are still working
schedule:
- cron: "20 4 18 * *"

jobs:

build:
name: Build on OTP ${{ matrix.otp_version }} / ${{ matrix.os }}
runs-on: ubuntu-latest
name: Erlang ${{ matrix.otp_version }} build
runs-on: ubuntu-20.04

strategy:
matrix:
otp_version: [21, 22, 23]
os: [ubuntu-latest]

container:
image: erlang:${{ matrix.otp_version }}
otp_version: ['20.3', '21.3', '22.3', '23.3', '24.3', '25.3']

steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp_version }}
rebar3-version: '3.16'
- name: Compile
run: rebar3 compile
- name: Xref Checks
Expand All @@ -32,7 +36,4 @@ jobs:
run: rebar3 proper --regressions
- name: Run Tests
run: rebar3 ct -c
- name: Test Coverage
run: rebar3 do proper -c, cover -v --min_coverage=75
- name: Generate Docs
run: rebar3 edoc

0 comments on commit b896a47

Please sign in to comment.