feat: establish eunit test suite with 29 tests #125
Workflow file for this run
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
| ## SPDX-License-Identifier: Apache-2.0 | |
| ## SPDX-FileCopyrightText: 2026 Kivra AB | |
| --- | |
| name: Continuous Integration | |
| on: | |
| pull_request: | |
| jobs: | |
| reuse-compliance-check: | |
| name: REUSE Compliance Check | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: REUSE Compliance Check | |
| uses: fsfe/reuse-action@676e2d560c9a403aa252096d99fcab3e1132b0f5 # v6.0.0 | |
| continuous-integration: | |
| name: Continuous Integration | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| # The API requires write permission on the repository to submit dependencies | |
| contents: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Install Erlang | |
| uses: erlef/setup-beam@e6d7c94229049569db56a7ad5a540c051a010af9 # v1.20.4 | |
| id: setup-beam | |
| with: | |
| # Try to keep consistent with action.yaml and release.yaml | |
| otp-version: 28.3.1 | |
| rebar3-version: 3.26.0 | |
| - name: Restore Erlang cache | |
| uses: actions/cache/restore@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2 | |
| with: | |
| path: | | |
| _build | |
| ~/.cache/rebar3 | |
| !_build/test/logs | |
| key: unused | |
| # Pulls generically: without run id or run attempt | |
| # Otherwise, if trying to use the same key cache/save later errors out | |
| restore-keys: "cache-for\ | |
| -os-${{ runner.os }}\ | |
| -otp-${{ steps.setup-beam.outputs.otp-version }}\ | |
| -rebar3-${{ steps.setup-beam.outputs.rebar3-version }}\ | |
| -hash-${{ hashFiles('rebar.lock') }}-${{ hashFiles('rebar.config') }}\ | |
| -" | |
| - name: Run Continuous Integration | |
| run: | | |
| git config \ | |
| --global url."https://github.com/".insteadOf 'git@github.com:' | |
| rebar3 ci | |
| - name: Save Erlang cache | |
| uses: actions/cache/save@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2 | |
| with: | |
| path: | | |
| _build | |
| ~/.cache/rebar3 | |
| !_build/test/logs | |
| # Saves specifically: with run id and run attempt | |
| key: "cache-for\ | |
| -os-${{ runner.os }}\ | |
| -otp-${{ steps.setup-beam.outputs.otp-version }}\ | |
| -rebar3-${{ steps.setup-beam.outputs.rebar3-version }}\ | |
| -hash-${{ hashFiles('rebar.lock') }}-${{ hashFiles('rebar.config') }}\ | |
| -${{ github.run_id }}-${{ github.run_attempt }}" | |
| - name: Test local dependency submission | |
| run: | | |
| ./_build/default/bin/rebar3_dependency_submission \ | |
| --token "${{ secrets.GITHUB_TOKEN }}" |