Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workflow updates #755

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@ scope-api:
scope-sdk:
- apps/opentelemetry/**

scope-semconv:
- apps/opentelemetry_semantic_conventions/**

scope-ci:
- .github/workflows/**
66 changes: 49 additions & 17 deletions .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ name: Elixir
on:
pull_request:
branches:
- 'main'
- "main"
types: [opened, reopened, synchronize, labeled]

push:
branches:
- 'main'
- "main"

jobs:
format:
Expand All @@ -15,9 +17,9 @@ jobs:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: '26.1.2'
elixir-version: '1.15.7'
version-type: 'strict'
otp-version: "26.1.2"
elixir-version: "1.15.7"
version-type: "strict"
- uses: actions/cache@v4
name: Cache
with:
Expand All @@ -34,9 +36,9 @@ jobs:
name: Test SDK on Elixir ${{ matrix.elixir_version }} (OTP ${{ matrix.otp_version }}) and ${{ matrix.os }}
strategy:
matrix:
otp_version: ['26.1.2', '24.3.4.14']
elixir_version: ['1.15.7', '1.12.3']
rebar3_version: ['3.22.1']
otp_version: ["26.1.2", "24.3.4.14"]
elixir_version: ["1.15.7", "1.12.3"]
rebar3_version: ["3.22.1"]
os: [ubuntu-20.04]
exclude:
- elixir_version: "1.12.3"
Expand All @@ -51,7 +53,7 @@ jobs:
otp-version: ${{ matrix.otp_version }}
elixir-version: ${{ matrix.elixir_version }}
rebar3-version: ${{ matrix.rebar3_version }}
version-type: 'strict'
version-type: "strict"
- name: Compile
run: rebar3 as test compile
- name: ExUnit
Expand All @@ -62,9 +64,9 @@ jobs:
name: Test API on Elixir ${{ matrix.elixir_version }} (OTP ${{ matrix.otp_version }}) and ${{ matrix.os }}
strategy:
matrix:
otp_version: ['26.1.2', '24.3.4.14']
elixir_version: ['1.15.7', '1.12.3']
rebar3_version: ['3.22.1']
otp_version: ["26.1.2", "24.3.4.14"]
elixir_version: ["1.15.7", "1.12.3"]
rebar3_version: ["3.22.1"]
os: [ubuntu-20.04]
exclude:
- elixir_version: "1.12.3"
Expand All @@ -82,7 +84,7 @@ jobs:
otp-version: ${{ matrix.otp_version }}
elixir-version: ${{ matrix.elixir_version }}
rebar3-version: ${{ matrix.rebar3_version }}
version-type: 'strict'
version-type: "strict"
- uses: actions/cache@v4
name: Cache
with:
Expand All @@ -108,9 +110,9 @@ jobs:
name: Dialyze on Elixir ${{ matrix.elixir_version }} (OTP ${{ matrix.otp_version }}) and ${{ matrix.os }}
strategy:
matrix:
otp_version: ['26.1.2']
elixir_version: ['1.15.7']
rebar_version: ['3.22.1']
otp_version: ["26.1.2"]
elixir_version: ["1.15.7"]
rebar_version: ["3.22.1"]
os: [ubuntu-20.04]
env:
OTP_VERSION: ${{ matrix.otp_version }}
Expand All @@ -124,7 +126,7 @@ jobs:
with:
otp-version: ${{ matrix.otp_version }}
elixir-version: ${{ matrix.elixir_version }}
version-type: 'strict'
version-type: "strict"
- uses: actions/cache@v4
name: Cache
with:
Expand All @@ -138,3 +140,33 @@ jobs:
name: Deps
- run: mix dialyzer
name: Dialyzer

semconv_tests:
runs-on: ${{ matrix.os }}
if: (contains(github.event.pull_request.labels.*.name, 'language-elixir') && contains(github.event.pull_request.labels.*.name, 'scope-semconv'))
name: Test SemConv on Elixir ${{ matrix.elixir_version }} (OTP ${{ matrix.otp_version }}) and ${{ matrix.os }}
strategy:
matrix:
otp_version: ["26.1.2", "24.3.4.14"]
elixir_version: ["1.15.7", "1.12.3"]
rebar3_version: ["3.22.1"]
os: [ubuntu-20.04]
exclude:
- elixir_version: "1.12.3"
- otp_version: "26.1.2"
defaults:
run:
working-directory: apps/opentelemetry_semantic_conventions
env:
OTP_VERSION: ${{ matrix.otp_version }}
ELIXIR_VERSION: ${{ matrix.elixir_version }}
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp_version }}
elixir-version: ${{ matrix.elixir_version }}
rebar3-version: ${{ matrix.rebar3_version }}
version-type: "strict"
- name: ExUnit
run: mix test
Loading
Loading