diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml index 1b3dbc5..1f45a87 100644 --- a/.github/workflows/elixir.yml +++ b/.github/workflows/elixir.yml @@ -1,5 +1,6 @@ name: CI on: + - push - pull_request env: OTP_VERSION: "24.0" @@ -90,15 +91,14 @@ jobs: macos: runs-on: macos-11 steps: - - uses: actions/checkout@v3 - - name: Install Erlang & Elixir - run: | - brew install erlang elixir - mix local.hex --force - mix local.rebar --force - - run: mix deps.get - - run: mix compile --warnings-as-errors - - run: mix test --trace + - uses: actions/checkout@v4 + - uses: DeterminateSystems/nix-installer-action@main + - uses: DeterminateSystems/magic-nix-cache-action@main + - uses: DeterminateSystems/flake-checker-action@main + - run: nix develop + - run: nix develop --command mix deps.get + - run: nix develop --command mix compile --warnings-as-errors + - run: nix develop --command mix test --trace windows: runs-on: windows-2019 diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml deleted file mode 100644 index 81f8288..0000000 --- a/.github/workflows/nix.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: Nix Test -on: - - push -jobs: - linux: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: DeterminateSystems/nix-installer-action@main - - uses: DeterminateSystems/magic-nix-cache-action@main - - uses: DeterminateSystems/flake-checker-action@main - - run: nix develop - - run: | - nix develop --command \ - mix deps.get - - run: | - nix develop --command \ - mix compile --warnings-as-errors - - run: | - nix develop --command \ - mix test --trace - - macos: - runs-on: macos-11 - steps: - - uses: actions/checkout@v4 - - uses: DeterminateSystems/nix-installer-action@main - - uses: DeterminateSystems/magic-nix-cache-action@main - - uses: DeterminateSystems/flake-checker-action@main - - run: nix develop - - run: | - nix develop --command \ - mix deps.get - - run: | - nix develop --command \ - mix compile --warnings-as-errors - - run: | - nix develop --command \ - mix test --trace