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..330dd5a --- /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: '26.1' + elixir-version: '1.14.1' + - 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: '26.1' + elixir-version: '1.14.1' + - 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..bbc9afb 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,3 +1,3 @@ elixir 1.14.1 -erlang 25.1.2 +erlang 26.1.2 nodejs 16.13.0