From e363cdb07acab2acebc12ffd4d53ec911f4ea351 Mon Sep 17 00:00:00 2001 From: k-asm Date: Thu, 13 Jun 2024 20:15:18 +0900 Subject: [PATCH 1/4] ci: exec tests on github actions --- .github/workflows/ci.yml | 58 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..db26cc9 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,58 @@ +name: CI +on: [push, pull_request] + +jobs: + build: + name: Build and test + runs-on: ubuntu-latest + env: + MIX_ENV: test + # see https://hexdocs.pm/elixir/compatibility-and-deprecations.html#between-elixir-and-erlang-otp + strategy: + fail-fast: false + matrix: + include: + - elixir: 1.17.x + otp: 27.x + lint: true + - elixir: 1.17.x + otp: 25.x + - elixir: 1.16.x + otp: 26.x + - elixir: 1.16.x + otp: 24.x + - elixir: 1.15.x + otp: 26.x + - elixir: 1.15.x + otp: 24.x + - elixir: 1.14.x + otp: 25.x + - elixir: 1.14.x + otp: 23.x + - elixir: 1.13.x + otp: 24.x + - elixir: 1.13.x + otp: 22.x + - elixir: 1.12.x + otp: 24.x + - elixir: 1.12.x + otp: 22.x + - elixir: 1.11.x + otp: 23.x + - elixir: 1.11.x + otp: 21.x + steps: + - uses: actions/checkout@v4 + - uses: erlef/setup-beam@v1 + with: + elixir-version: ${{ matrix.elixir }} + otp-version: ${{ matrix.otp }} + - run: mix deps.get + - run: mix deps.compile + - run: mix compile --warnings-as-errors + if: ${{ matrix.lint }} + - run: mix format --check-formatted + if: ${{ matrix.lint }} + - run: mix deps.unlock --check-unused + if: ${{ matrix.lint }} + - run: mix test From d13a686db0a952ab00d0e1bee9bb7505622ce0c7 Mon Sep 17 00:00:00 2001 From: k-asm Date: Thu, 13 Jun 2024 20:15:40 +0900 Subject: [PATCH 2/4] ci: remove .travis.yml --- .travis.yml | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 6ed6484..0000000 --- a/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: elixir -elixir: - - 1.3.4 - - 1.4.5 - - 1.5.2 -otp_release: - - 19.3 - - 20.0 -matrix: - exclude: - - elixir: 1.3.4 - otp_release: 20.0 From 5db0aab2b7ecf3407e00cd8ad83e86a9db754722 Mon Sep 17 00:00:00 2001 From: k-asm Date: Thu, 13 Jun 2024 20:21:16 +0900 Subject: [PATCH 3/4] ci: use ubuntu-20.04 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index db26cc9..8f5c71d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,7 @@ on: [push, pull_request] jobs: build: name: Build and test - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 env: MIX_ENV: test # see https://hexdocs.pm/elixir/compatibility-and-deprecations.html#between-elixir-and-erlang-otp From 68adabcc3f0fa9c816a01e09cd2403eb98b1ba51 Mon Sep 17 00:00:00 2001 From: k-asm Date: Thu, 13 Jun 2024 20:29:44 +0900 Subject: [PATCH 4/4] doc: remove status badge for Travis CI --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index e6e7d56..377c3c1 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,6 @@ [Looking for maintainer](https://github.com/vic/params/issues/new?title=Becoming%20a%20maintainer) -[![Build Status](https://travis-ci.org/vic/params.svg?branch=master)](https://travis-ci.org/vic/params) [![Hex Version](https://img.shields.io/hexpm/v/params.svg)](https://hex.pm/packages/params) [![Hex Docs](https://img.shields.io/badge/hex-docs-lightgreen.svg)](https://hexdocs.pm/params/) [![Total Download](https://img.shields.io/hexpm/dt/params.svg)](https://hex.pm/packages/params)