chore: approach Node.js' "suites and tests" way of testing (#328)

This commit is contained in:
Paulo F. Oliveira
2025-04-26 23:54:49 +01:00
committed by GitHub
parent 4b97eeaf23
commit 8e3c26cc73
5 changed files with 797 additions and 864 deletions
+2 -38
View File
@@ -69,47 +69,11 @@ jobs:
- otp-version: '26'
rebar3-version: 'nightly'
os: 'ubuntu-latest'
- elixir-version: 'v1.6'
otp-version: '21'
rebar3-version: '3.12'
os: 'ubuntu-20.04'
- elixir-version: 'v1.7'
otp-version: '22'
rebar3-version: '3.13'
os: 'ubuntu-20.04'
- elixir-version: 'v1.10'
otp-version: '23'
rebar3-version: '3.14'
os: 'ubuntu-20.04'
- elixir-version: 'v1.13.4'
otp-version: '25.0.2'
rebar3-version: '3.19'
os: 'ubuntu-20.04'
- elixir-version: 'v1.12'
otp-version: '24'
rebar3-version: '3.15'
os: 'ubuntu-20.04'
- elixir-version: 'v1.11.0'
otp-version: '22.3.4.2'
os: 'ubuntu-20.04'
version-type: 'strict'
- elixir-version: '1.10.3'
otp-version: '22.3.4.1'
os: 'ubuntu-20.04'
version-type: 'strict'
- elixir-version: 'main'
otp-version: '23.1'
os: 'ubuntu-20.04'
version-type: 'strict'
- elixir-version: 'main'
otp-version: '25'
os: 'ubuntu-20.04'
version-type: 'strict'
- gleam-version: '1.5.1'
- gleam-version: '1.9.0'
otp-version: '27'
os: 'ubuntu-latest'
disable_problem_matchers: true
- gleam-version: '1.5.1'
- gleam-version: '1.9.0'
otp-version: false
os: 'ubuntu-latest'
disable_problem_matchers: true
+1 -1
View File
@@ -58,7 +58,7 @@ jobs:
otp-version: '24'
rebar3-version: '3.15'
os: 'windows-latest'
- gleam-version: '1.5.1'
- gleam-version: '1.9.0'
otp-version: '27'
os: 'windows-latest'
- elixir-version: 'v1.13'
+9 -9
View File
@@ -106,7 +106,7 @@ jobs:
test:
runs-on: self-hosted
env:
ImageOS: ubuntu20 # equivalent to runs-on ubuntu-20.04
ImageOS: ubuntu24 # equivalent to runs-on ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
@@ -241,12 +241,12 @@ on: push
jobs:
test:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
strategy:
matrix:
otp: ['21.1', '22.2', '23.3']
elixir: ['1.8.2', '1.9.4']
otp: ['25.3.2', '26.2.5', '27.3.3']
elixir: ['1.17.3', '1.18.3']
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
@@ -265,12 +265,12 @@ on: push
jobs:
test:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
name: Erlang/OTP ${{matrix.otp}} / rebar3 ${{matrix.rebar3}}
strategy:
matrix:
otp: ['21.1', '22.2', '23.3']
rebar3: ['3.14.1', '3.14.3']
otp: ['25.3.2', '26.2.5', '27.3.3']
rebar3: ['3.23.0', '3.24.0']
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
@@ -312,7 +312,7 @@ jobs:
- uses: erlef/setup-beam@v1
with:
otp-version: '27'
gleam-version: '1.5.1'
gleam-version: '1.9.0'
- run: gleam test
```
@@ -330,7 +330,7 @@ jobs:
- uses: erlef/setup-beam@v1
with:
otp-version: false
gleam-version: '1.5.1'
gleam-version: '1.9.0'
- run: gleam check
```
+1 -1
View File
@@ -9,7 +9,7 @@
"licenses": "yarn licenses generate-disclaimer > 3RD_PARTY_LICENSES",
"markdownlint": "markdownlint *.md ./github/**/*.md",
"shellcheck": "shellcheck .github/workflows/*.sh",
"test": "node test/setup-beam.test.js",
"test": "node --test --test-reporter=spec",
"yamllint": "yamllint .github/workflows/**.yml && yamllint .*.yml && yamllint *.yml",
"clean-dist": "rm -rf ./dist",
"lint": "npm run markdownlint && npm run shellcheck && npm run yamllint && npm run jslint",
+784 -815
View File
File diff suppressed because it is too large Load Diff