From dd3c032df83415c632b951ee0413a3f10d96ece8 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 | 34 +++++++++++++++++++++++++++++++++ .tool-versions | 2 +- 3 files changed, 35 insertions(+), 38 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..5b8ca56 --- /dev/null +++ b/.github/workflows/action.yml @@ -0,0 +1,34 @@ +on: push + +jobs: + test: + runs-on: ubuntu-latest + name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}} + steps: + - uses: actions/checkout@v2 + - uses: erlef/setup-beam@v1 + with: + otp-version: '25.1' + elixir-version: '1.14.5' + - 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: erlef/setup-beam@v1 + with: + otp-version: '25.1' + elixir-version: '1.14.5' + - 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 diff --git a/.tool-versions b/.tool-versions index 8658b9c..80b7f1e 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,3 +1,3 @@ -elixir 1.14.1 +elixir 1.14.5 erlang 25.1.2 nodejs 16.13.0