Skip to content

Bump actions/checkout from 6.0.0 to 6.0.1 #440

Bump actions/checkout from 6.0.0 to 6.0.1

Bump actions/checkout from 6.0.0 to 6.0.1 #440

Workflow file for this run

name: CI
on: [push, pull_request]
permissions:
contents: read
jobs:
fmt:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Prepare
run: |
sudo apt update
sudo apt install emacs-nox
- name: Install Erlang/OTP
uses: erlef/setup-beam@e6d7c94229049569db56a7ad5a540c051a010af9 # v1.20.4
with:
otp-version: '28.1.1'
rebar3-version: '3.25.1'
- name: erlang-formatter
run: |
rebar3 as check fmt
status="$(git status --untracked-file=no --porcelain)"
if [ ! -z "$status" ]; \
then \
echo "Error: Please format the following files (e.g. run 'rebar3 as check fmt')"; \
echo "$status"; \
exit 1; \
fi
spellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Install typos
uses: taiki-e/install-action@14083e64ac8cf1f5e54356df00b9779b23e192a1 # v2.58.29
with:
tool: typos
- name: Run typos
run: typos --config=.github/typos.toml
build:
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
include:
- otp-version: '28.1.1'
- otp-version: '27.3.4.6'
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Install Erlang/OTP
uses: erlef/setup-beam@e6d7c94229049569db56a7ad5a540c051a010af9 # v1.20.4
with:
otp-version: ${{ matrix.otp-version }}
rebar3-version: '3.25.1'
- name: Install packages for common tests
uses: awalsh128/cache-apt-pkgs-action@acb598e5ddbc6f68a970c5da0688d2f3a9f04d05 # v1.6.0
with:
packages: redis-server faketime
version: 1.0
- name: Compile
run: rebar3 compile
- name: Run eunit tests
run: rebar3 eunit
- name: Run common tests
run: rebar3 ct
- name: Run dialyzer
run: |
# Remove remnants from "rebar3 ct" that creates problems for the dialyzer.
# rebar3 might add ct_hooks that are not found by the dialyzer and will
# create warnings if not rebuilt. Example of a warning:
# test/ered_cluster_SUITE.erl
# Line 72 Column 13: Unknown function cthr:pal/1
rebar3 as test clean
rebar3 as test dialyzer