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 diff --git a/README.md b/README.md index 6c0e79d..3cd9af2 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,6 @@ [![Hex pm](http://img.shields.io/hexpm/v/bitstyles_phoenix.svg?style=flat)](https://hex.pm/packages/bitstyles_phoenix) [![Hex docs](http://img.shields.io/badge/hex.pm-docs-green.svg?style=flat)](https://hexdocs.pm/bitstyles_phoenix) [![License](https://img.shields.io/hexpm/l/bitstyles_phoenix?style=flat)](./LICENSE.txt) -[![CircleCI](https://circleci.com/gh/bitcrowd/bitstyles_phoenix.svg?style=shield)](https://circleci.com/gh/bitcrowd/bitstyles_phoenix) Basic helpers for [bitstyles](https://github.com/bitcrowd/bitstyles) for elixir phoenix projects.