Build #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: | |
| push: | |
| branches: ["master"] | |
| paths: | |
| - ".github/workflows/build.yml" | |
| - "README.md" | |
| - "rebar.config" | |
| - "src/**" | |
| - "test/**" | |
| pull_request: | |
| branches: ["master"] | |
| paths: | |
| - ".github/workflows/build.yml" | |
| - "README.md" | |
| - "rebar.config" | |
| - "src/**" | |
| - "test/**" | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "0 0 1 * *" | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: "build-${{ github.workflow }}-${{ github.ref }}" | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| name: OTP ${{ matrix.erlang }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| erlang: [27, 28, 29] | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Check out the source code | |
| uses: actions/checkout@v4 | |
| - name: Set up Erlang/OTP | |
| uses: erlangsters/setup-erlang@v1 | |
| with: | |
| erlang-version: ${{ matrix.erlang }} | |
| install-rebar3: true | |
| - name: Compile the library | |
| run: rebar3 compile | |
| - name: Run the regression tests | |
| run: rebar3 eunit |