Bumps [erlef/setup-beam](https://github.com/erlef/setup-beam) from 1.20.4 to 1.23.0. - [Release notes](https://github.com/erlef/setup-beam/releases) - [Commits](https://github.com/erlef/setup-beam/compare/e6d7c94229049569db56a7ad5a540c051a010af9...ee09b1e59bb240681c382eb1f0abc6a04af72764) --- updated-dependencies: - dependency-name: erlef/setup-beam dependency-version: 1.23.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
152 lines
4.1 KiB
YAML
152 lines
4.1 KiB
YAML
# SPDX-License-Identifier: Apache-2.0
|
|
# SPDX-FileCopyrightText: 2021 The Elixir Team
|
|
# SPDX-FileCopyrightText: 2012 Plataformatec
|
|
|
|
name: CI
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
ELIXIR_ASSERT_TIMEOUT: 2000
|
|
ELIXIRC_OPTS: "--warnings-as-errors"
|
|
LANG: C.UTF-8
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
test_linux:
|
|
name: Ubuntu 24.04, OTP ${{ matrix.otp_version }}${{ matrix.deterministic && ' (deterministic)' || '' }}${{ matrix.coverage && ' (coverage)' || '' }}
|
|
runs-on: ubuntu-24.04
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- otp_version: "29.0-rc1"
|
|
- otp_version: "28.1"
|
|
deterministic: true
|
|
- otp_version: "28.1"
|
|
docs: true
|
|
coverage: true
|
|
- otp_version: "27.3"
|
|
- otp_version: "27.0"
|
|
- otp_version: master
|
|
development: true
|
|
- otp_version: maint
|
|
development: true
|
|
|
|
env:
|
|
ERLC_OPTS: "warnings_as_errors"
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- uses: erlef/setup-beam@ee09b1e59bb240681c382eb1f0abc6a04af72764 # v1.23.0
|
|
with:
|
|
otp-version: ${{ matrix.otp_version }}
|
|
|
|
- name: Set ERL_COMPILER_OPTIONS
|
|
if: ${{ matrix.deterministic }}
|
|
run: echo "ERL_COMPILER_OPTIONS=deterministic" >> $GITHUB_ENV
|
|
|
|
- name: Compile Elixir
|
|
run: |
|
|
make compile
|
|
echo "$PWD/bin" >> $GITHUB_PATH
|
|
|
|
- name: Build info
|
|
run: bin/elixir --version
|
|
|
|
- name: Check format
|
|
run: make test_formatted && echo "All Elixir source code files are properly formatted."
|
|
|
|
- name: Erlang test suite
|
|
run: make test_erlang
|
|
continue-on-error: ${{ matrix.development == true }}
|
|
|
|
- name: Elixir test suite
|
|
run: make test_elixir
|
|
continue-on-error: ${{ matrix.development == true }}
|
|
env:
|
|
COVER: "${{ matrix.coverage }}"
|
|
|
|
- name: Build docs (ExDoc main)
|
|
if: ${{ matrix.docs }}
|
|
run: |
|
|
cd ..
|
|
git clone https://github.com/elixir-lang/ex_doc.git --depth 1
|
|
cd ex_doc
|
|
../elixir/bin/mix do local.rebar --force + local.hex --force + deps.get + compile
|
|
cd ../elixir/
|
|
git fetch --tags
|
|
DOCS_OPTIONS="--warnings-as-errors" make docs
|
|
|
|
- name: "Calculate Coverage"
|
|
if: ${{ matrix.coverage }}
|
|
run: make cover | tee "$GITHUB_STEP_SUMMARY"
|
|
|
|
- name: "Upload Coverage Artifact"
|
|
if: ${{ matrix.coverage }}
|
|
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
|
|
with:
|
|
name: TestCoverage
|
|
path: cover/*
|
|
|
|
- name: Check reproducible builds
|
|
if: ${{ matrix.deterministic }}
|
|
run: taskset 1 make check_reproducible
|
|
|
|
- name: Check git is not required
|
|
if: ${{ matrix.deterministic }}
|
|
run: |
|
|
rm -rf .git
|
|
cd lib/elixir
|
|
elixirc --ignore-module-conflict -o ebin "lib/**/*.ex"
|
|
|
|
test_windows:
|
|
name: Windows Server 2022, OTP ${{ matrix.otp_version }}
|
|
runs-on: windows-2022
|
|
|
|
strategy:
|
|
matrix:
|
|
otp_version:
|
|
- "29.0-rc1"
|
|
- "28.1"
|
|
- "27.3"
|
|
|
|
steps:
|
|
- name: Configure Git
|
|
run: git config --global core.autocrlf input
|
|
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- uses: erlef/setup-beam@ee09b1e59bb240681c382eb1f0abc6a04af72764 # v1.23.0
|
|
with:
|
|
otp-version: ${{ matrix.otp_version }}
|
|
|
|
- name: Compile Elixir
|
|
run: |
|
|
Remove-Item -Recurse -Force '.git'
|
|
make compile
|
|
|
|
- name: Build info
|
|
run: bin/elixir --version
|
|
|
|
- name: Check format
|
|
run: make test_formatted && echo "All Elixir source code files are properly formatted."
|
|
|
|
- name: Erlang test suite
|
|
run: make test_erlang
|
|
|
|
- name: Elixir test suite
|
|
run: |
|
|
Remove-Item 'c:/Windows/System32/drivers/etc/hosts'
|
|
make test_elixir
|