diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml index 687be99..1b3dbc5 100644 --- a/.github/workflows/elixir.yml +++ b/.github/workflows/elixir.yml @@ -1,6 +1,5 @@ name: CI on: - - push - pull_request env: OTP_VERSION: "24.0" diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml new file mode 100644 index 0000000..d07961d --- /dev/null +++ b/.github/workflows/nix.yml @@ -0,0 +1,29 @@ +name: CI +on: + - push +jobs: + linux: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: cachix/install-nix-action@v27 + with: + github_access_token: ${{ secrets.GITHUB_TOKEN }} + - run: nix build + - run: nix flake check + - run: mix deps.get + - run: mix compile --warnings-as-errors + - run: mix test --trace + + macos: + runs-on: macos-11 + steps: + - uses: actions/checkout@v4 + - uses: cachix/install-nix-action@v27 + with: + github_access_token: ${{ secrets.GITHUB_TOKEN }} + - run: nix build + - run: nix flake check + - run: mix deps.get + - run: mix compile --warnings-as-errors + - run: mix test --trace