From 7ecf54fbc93af942dfbb00a2cdd5b3069d6b6ef2 Mon Sep 17 00:00:00 2001 From: Aleksei Magusev Date: Fri, 1 Dec 2023 03:09:47 -0800 Subject: [PATCH] Move CI to GitHub Actions --- .github/workflows/ci.yml | 43 ++++++++++++++++++++++++++++++++++++++++ .travis.yml | 28 -------------------------- 2 files changed, 43 insertions(+), 28 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..94d9f96 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,43 @@ +name: CI + +on: + push: + # branches: + # - master + pull_request: + +jobs: + test: + name: Test suite + runs-on: ubuntu-20.04 + + strategy: + matrix: + otp: ["25"] + elixir: ["1.15"] + runtime_config: [true, false] + + include: + - otp: "20" + elixir: "1.6" + runtime_config: false + + env: + MIX_ENV: test + + steps: + - uses: actions/checkout@v3 + + - name: Set up Elixir environment + uses: erlef/setup-beam@v1 + with: + elixir-version: ${{ matrix.elixir }} + otp-version: ${{ matrix.otp }} + + - name: Install dependencies + run: mix deps.get --only test + + - name: Run tests + run: mix test + env: + STATIX_TEST_RUNTIME_CONFIG: ${{ matrix.runtime_config }} \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 5fdc741..0000000 --- a/.travis.yml +++ /dev/null @@ -1,28 +0,0 @@ -language: elixir - -branches: - only: - - master - -jobs: - include: - - stage: check formatted - script: mix format --check-formatted - otp_release: 20.3 - elixir: 1.7 - - stage: test - script: mix test - otp_release: 18.3 - elixir: 1.3 - - otp_release: 19.3 - elixir: 1.4 - - otp_release: 20.3 - elixir: 1.5 - - otp_release: 20.3 - elixir: 1.6 - env: STATIX_TEST_RUNTIME_CONFIG=false - - otp_release: 20.3 - elixir: 1.6 - env: STATIX_TEST_RUNTIME_CONFIG=true - - otp_release: 21.0 - elixir: 1.7