mirror of
https://github.com/erlef/setup-beam.git
synced 2026-07-22 22:56:07 +00:00
chore: approach Node.js' "suites and tests" way of testing (#328)
This commit is contained in:
committed by
GitHub
parent
4b97eeaf23
commit
8e3c26cc73
@@ -69,47 +69,11 @@ jobs:
|
|||||||
- otp-version: '26'
|
- otp-version: '26'
|
||||||
rebar3-version: 'nightly'
|
rebar3-version: 'nightly'
|
||||||
os: 'ubuntu-latest'
|
os: 'ubuntu-latest'
|
||||||
- elixir-version: 'v1.6'
|
- gleam-version: '1.9.0'
|
||||||
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'
|
|
||||||
otp-version: '27'
|
otp-version: '27'
|
||||||
os: 'ubuntu-latest'
|
os: 'ubuntu-latest'
|
||||||
disable_problem_matchers: true
|
disable_problem_matchers: true
|
||||||
- gleam-version: '1.5.1'
|
- gleam-version: '1.9.0'
|
||||||
otp-version: false
|
otp-version: false
|
||||||
os: 'ubuntu-latest'
|
os: 'ubuntu-latest'
|
||||||
disable_problem_matchers: true
|
disable_problem_matchers: true
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ jobs:
|
|||||||
otp-version: '24'
|
otp-version: '24'
|
||||||
rebar3-version: '3.15'
|
rebar3-version: '3.15'
|
||||||
os: 'windows-latest'
|
os: 'windows-latest'
|
||||||
- gleam-version: '1.5.1'
|
- gleam-version: '1.9.0'
|
||||||
otp-version: '27'
|
otp-version: '27'
|
||||||
os: 'windows-latest'
|
os: 'windows-latest'
|
||||||
- elixir-version: 'v1.13'
|
- elixir-version: 'v1.13'
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
env:
|
env:
|
||||||
ImageOS: ubuntu20 # equivalent to runs-on ubuntu-20.04
|
ImageOS: ubuntu24 # equivalent to runs-on ubuntu-24.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: erlef/setup-beam@v1
|
- uses: erlef/setup-beam@v1
|
||||||
@@ -241,12 +241,12 @@ on: push
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-24.04
|
||||||
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
|
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
otp: ['21.1', '22.2', '23.3']
|
otp: ['25.3.2', '26.2.5', '27.3.3']
|
||||||
elixir: ['1.8.2', '1.9.4']
|
elixir: ['1.17.3', '1.18.3']
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: erlef/setup-beam@v1
|
- uses: erlef/setup-beam@v1
|
||||||
@@ -265,12 +265,12 @@ on: push
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-24.04
|
||||||
name: Erlang/OTP ${{matrix.otp}} / rebar3 ${{matrix.rebar3}}
|
name: Erlang/OTP ${{matrix.otp}} / rebar3 ${{matrix.rebar3}}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
otp: ['21.1', '22.2', '23.3']
|
otp: ['25.3.2', '26.2.5', '27.3.3']
|
||||||
rebar3: ['3.14.1', '3.14.3']
|
rebar3: ['3.23.0', '3.24.0']
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: erlef/setup-beam@v1
|
- uses: erlef/setup-beam@v1
|
||||||
@@ -312,7 +312,7 @@ jobs:
|
|||||||
- uses: erlef/setup-beam@v1
|
- uses: erlef/setup-beam@v1
|
||||||
with:
|
with:
|
||||||
otp-version: '27'
|
otp-version: '27'
|
||||||
gleam-version: '1.5.1'
|
gleam-version: '1.9.0'
|
||||||
- run: gleam test
|
- run: gleam test
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -330,7 +330,7 @@ jobs:
|
|||||||
- uses: erlef/setup-beam@v1
|
- uses: erlef/setup-beam@v1
|
||||||
with:
|
with:
|
||||||
otp-version: false
|
otp-version: false
|
||||||
gleam-version: '1.5.1'
|
gleam-version: '1.9.0'
|
||||||
- run: gleam check
|
- run: gleam check
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -9,7 +9,7 @@
|
|||||||
"licenses": "yarn licenses generate-disclaimer > 3RD_PARTY_LICENSES",
|
"licenses": "yarn licenses generate-disclaimer > 3RD_PARTY_LICENSES",
|
||||||
"markdownlint": "markdownlint *.md ./github/**/*.md",
|
"markdownlint": "markdownlint *.md ./github/**/*.md",
|
||||||
"shellcheck": "shellcheck .github/workflows/*.sh",
|
"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",
|
"yamllint": "yamllint .github/workflows/**.yml && yamllint .*.yml && yamllint *.yml",
|
||||||
"clean-dist": "rm -rf ./dist",
|
"clean-dist": "rm -rf ./dist",
|
||||||
"lint": "npm run markdownlint && npm run shellcheck && npm run yamllint && npm run jslint",
|
"lint": "npm run markdownlint && npm run shellcheck && npm run yamllint && npm run jslint",
|
||||||
|
|||||||
+784
-815
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user