From 49f5bd5ba438cea935f6f41f6ca86b5f4a391ef2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Kn=C3=B6pfle?= Date: Fri, 22 Mar 2024 10:03:59 +0100 Subject: [PATCH] Switch to actions --- .circleci/config.yml | 37 ----------------------------------- .github/workflows/action.yml | 38 ++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 37 deletions(-) delete mode 100644 .circleci/config.yml create mode 100644 .github/workflows/action.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 840fa6b..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,37 +0,0 @@ -version: 2.1 -orbs: - browser-tools: circleci/browser-tools@1.4.6 -jobs: - test: - docker: - - image: cimg/elixir:1.12.2 - working_directory: ~/repo - steps: - - checkout - - run: mix local.hex --force - - run: mix local.rebar --force - - run: mix deps.get - - run: mix format --check-formatted - - run: mix test - - run: mix credo --strict - - run: mix docs - demo: - docker: - - image: cimg/elixir:1.12.2-browsers - working_directory: ~/repo - steps: - - checkout - - browser-tools/install-chrome - - browser-tools/install-chromedriver - - run: mix local.hex --force - - run: mix local.rebar --force - - run: cd demo && mix deps.get - - run: cd demo && mix format --check-formatted - - run: cd demo/assets && npm install - - run: cd demo && mix test -workflows: - version: 2 - build: - jobs: - - test - - demo diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml new file mode 100644 index 0000000..5519277 --- /dev/null +++ b/.github/workflows/action.yml @@ -0,0 +1,38 @@ +on: push + +jobs: + test: + runs-on: ubuntu-latest + name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}} + strategy: + matrix: + otp: ['22.2', '26.1'] + elixir: ['1.12.2', '1.15.7'] + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-elixir@v1 + with: + otp-version: ${{matrix.otp}} + elixir-version: ${{matrix.elixir}} + - run: mix deps.get + - run: mix format --check-formatted + - run: mix test + - run: mix credo --strict + - run: mix docs + demo: + runs-on: ubuntu-latest + name: Demo + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-elixir@v1 + with: + otp-version: '26.1' + elixir-version: '1.15.7' + - uses: actions/setup-node@v4 + with: + node-version: 18 + - uses: nanasess/setup-chromedriver@v2 + - run: cd demo && mix deps.get + - run: cd demo && mix format --check-formatted + - run: cd demo/assets && npm install + - run: cd demo && mix test