mirror of
https://github.com/erlef/setup-beam.git
synced 2026-07-22 22:56:07 +00:00
b9783cdeea
* Enable debug for OTP versions' listings * Make it easier to detect * Prevent error annotation on expected error The fact that one mirror fails in the above test and others follow working is test enough for me A single failing mirror should fail, but it's confusing to have an error annotation for a success (via continue-on-error) while not being able to suppress it via GitHub Actions * Trying to figure out why we have a rebar_core exception Might simply be that the bug is already fixed and we need to bump rebar3 * Try to debug into non-JSON input * Prevent error in rebar_core We're getting Access Denied for Fetching registry from "https://repo.hex.pm:443/registry.ets.gz?" * Try to figure out what's breaking tests * Make jsonParse(...).map failure more understandable * Ease test maintenance * Tweak folder structure while moving console._ to core._
137 lines
4.5 KiB
YAML
137 lines
4.5 KiB
YAML
---
|
|
name: windows
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
types: [opened, synchronize]
|
|
|
|
jobs:
|
|
integration_test:
|
|
name: >
|
|
OTP ${{matrix.combo.otp-version}},
|
|
Elixir ${{matrix.combo.elixir-version}},
|
|
Gleam ${{matrix.combo.gleam-version}},
|
|
rebar3 ${{matrix.combo.rebar3-version}}
|
|
runs-on: ${{matrix.combo.os}}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
combo:
|
|
- otp-version: '25'
|
|
rebar3-version: 'nightly'
|
|
os: 'windows-latest'
|
|
- otp-version: '24.0.2'
|
|
rebar3-version: '3.16'
|
|
os: 'windows-2019'
|
|
- otp-version: '24.0.2'
|
|
rebar3-version: 'nightly'
|
|
os: 'windows-2019'
|
|
- otp-version: '23.0'
|
|
rebar3-version: '3.15'
|
|
os: 'windows-2019'
|
|
- elixir-version: 'v1.10'
|
|
otp-version: '23'
|
|
rebar3-version: '3.14'
|
|
os: 'windows-latest'
|
|
- elixir-version: 'v1.13'
|
|
otp-version: '24'
|
|
rebar3-version: '3.15'
|
|
os: 'windows-latest'
|
|
- gleam-version: '0.19.0-rc3'
|
|
otp-version: '24'
|
|
os: 'windows-latest'
|
|
- gleam-version: '0.23.0-rc1'
|
|
otp-version: '24'
|
|
os: 'windows-latest'
|
|
- elixir-version: 'v1.13'
|
|
otp-version: '24'
|
|
escript_packages: 'hex protobuf'
|
|
escript_script: 'protoc-gen-elixir --version'
|
|
os: 'windows-latest'
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Use erlef/setup-beam
|
|
id: setup-beam
|
|
uses: ./
|
|
with:
|
|
otp-version: ${{matrix.combo.otp-version}}
|
|
elixir-version: ${{matrix.combo.elixir-version}}
|
|
gleam-version: ${{matrix.combo.gleam-version}}
|
|
rebar3-version: ${{matrix.combo.rebar3-version}}
|
|
- name: Erlang/OTP version (action)
|
|
run: echo "Erlang/OTP ${{steps.setup-beam.outputs.otp-version}}"
|
|
- name: Elixir version (action)
|
|
run: echo "Elixir ${{steps.setup-beam.outputs.elixir-version}}"
|
|
if: ${{matrix.combo.elixir-version}}
|
|
- name: Gleam version (action)
|
|
run: echo "Gleam ${{steps.setup-beam.outputs.gleam-version}}"
|
|
if: ${{matrix.combo.gleam-version}}
|
|
- name: rebar3 version (action)
|
|
run: echo "rebar3 ${{steps.setup-beam.outputs.rebar3-version}}"
|
|
- name: Run rebar3 and rebar3.cmd
|
|
run: |
|
|
# Should not fail
|
|
rebar3 version
|
|
rebar3.cmd version
|
|
if: ${{matrix.combo.rebar3-version}}
|
|
- name: rebar3 from Rust
|
|
run: |
|
|
cd test/projects/rust_rebar3_cmd
|
|
cargo test -- --nocapture
|
|
if: ${{matrix.combo.rebar3-version}}
|
|
- name: mix version and help (CLI)
|
|
run: |
|
|
mix -v
|
|
mix help local.rebar
|
|
mix help local.hex
|
|
if: ${{matrix.combo.elixir-version}}
|
|
- name: Run Elixir/Mix project tests
|
|
run: |
|
|
cd test/projects/elixir_mix
|
|
mix deps.get
|
|
mix test
|
|
if: ${{matrix.combo.elixir-version}}
|
|
- name: Run Erlang/rebar3 project tests
|
|
run: |
|
|
cd test/projects/erlang_rebar3
|
|
rebar3 ct
|
|
if: ${{matrix.combo.rebar3-version}}
|
|
- name: Run escript
|
|
run: |
|
|
mix escript.install --force ${{matrix.combo.escript_packages}}
|
|
${{matrix.combo.escript_script}}
|
|
if: ${{matrix.combo.escript_packages && matrix.combo.escript_script}}
|
|
environment_variables:
|
|
name: Environment variables
|
|
runs-on: ${{matrix.combo.os}}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
combo:
|
|
- otp-version: '24'
|
|
elixir-version: 'v1.12'
|
|
gleam-version: '0.23.0-rc1'
|
|
rebar3-version: 'nightly'
|
|
os: 'windows-latest'
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Use erlef/setup-beam
|
|
id: setup-beam
|
|
uses: ./
|
|
with:
|
|
otp-version: ${{matrix.combo.otp-version}}
|
|
elixir-version: ${{matrix.combo.elixir-version}}
|
|
gleam-version: ${{matrix.combo.gleam-version}}
|
|
rebar3-version: ${{matrix.combo.rebar3-version}}
|
|
- run: env
|
|
- name: List environment variables
|
|
run: |
|
|
[ -n "${INSTALL_DIR_FOR_ELIXIR}" ] && echo "${INSTALL_DIR_FOR_ELIXIR}"
|
|
[ -n "${INSTALL_DIR_FOR_GLEAM}" ] && echo "${INSTALL_DIR_FOR_GLEAM}"
|
|
[ -n "${INSTALL_DIR_FOR_OTP}" ] && echo "${INSTALL_DIR_FOR_OTP}"
|
|
[ -n "${INSTALL_DIR_FOR_REBAR3}" ] && echo "${INSTALL_DIR_FOR_REBAR3}"
|
|
shell: bash
|