From 821133829f644ce34ea04aa89294d52c42d08bb4 Mon Sep 17 00:00:00 2001 From: rekkice Date: Tue, 14 Jan 2025 07:58:33 -0300 Subject: [PATCH] chore: updated Github action to reflect new devenv structure --- .github/workflows/mix-format.yml | 7 +++++-- .github/workflows/tests.yml | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/mix-format.yml b/.github/workflows/mix-format.yml index 8d168ada..3a04ab42 100644 --- a/.github/workflows/mix-format.yml +++ b/.github/workflows/mix-format.yml @@ -11,13 +11,16 @@ jobs: matrix: os: [ubuntu-latest, macos-latest] runs-on: ${{ matrix.os }} + defaults: + run: + working-directory: ./tololo steps: - uses: actions/checkout@v4 - uses: nixbuild/nix-quick-install-action@v29 - - uses: DeterminateSystems/magic-nix-cache-action@v2 + # - uses: DeterminateSystems/magic-nix-cache-action@v2 - name: Install devenv.sh run: nix profile install nixpkgs#devenv @@ -49,6 +52,6 @@ jobs: ${{ runner.os }}-mix- - name: Run `mix format` - working-directory: ./tololo + run: devenv shell run: devenv tasks run mix:format diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 27e04b0f..5e6d8569 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -48,4 +48,5 @@ jobs: ${{ runner.os }}-mix- - name: Build the devenv shell and run tests + working-directory: ./tololo run: devenv test