From 0f20bce07ebdb9e0e077a684d3bbc5282f51c39e Mon Sep 17 00:00:00 2001 From: Jamie Brynes Date: Wed, 28 Feb 2024 21:03:31 +0000 Subject: [PATCH 1/3] chore: try using nix-develop-action to cut out boilerplate --- .github/workflows/premerge.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/premerge.yml b/.github/workflows/premerge.yml index b7e60b3..8a91e63 100644 --- a/.github/workflows/premerge.yml +++ b/.github/workflows/premerge.yml @@ -14,14 +14,23 @@ jobs: - name: Setup Magic Nix cache uses: DeterminateSystems/magic-nix-cache-action@main + - name: Use nix-develop shell + uses: nicknovitski/nix-develop@v1.1.0 + with: + arguments: ./nix --impure + - name: Install dependencies - run: nix develop ./nix --impure --command bash -c "cd plugin && npm install" + run: npm install + working-directory: ./plugin - name: Check - run: nix develop ./nix --impure --command bash -c "cd plugin && npm run check" + run: npm run check + working-directory: ./plugin - name: Build - run: nix develop ./nix --impure --command bash -c "cd plugin && npm run build" + run: npm run build + working-directory: ./plugin - name: Test - run: nix develop ./nix --impure --command bash -c "cd plugin && npm run test" + run: npm run test + working-directory: ./plugin From 33b14971116586597baedd51153adcf8d210dab0 Mon Sep 17 00:00:00 2001 From: Jamie Brynes Date: Wed, 28 Feb 2024 21:11:13 +0000 Subject: [PATCH 2/3] chore: swap docs action to use nix-develop-action too --- .github/workflows/docs.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 3e08c62..0f46813 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -32,11 +32,18 @@ jobs: - name: Setup Magic Nix cache uses: DeterminateSystems/magic-nix-cache-action@main + - name: Use nix-develop shell + uses: nicknovitski/nix-develop@v1.1.0 + with: + arguments: ./nix --impure + - name: Install dependencies - run: nix develop ./nix --impure --command bash -c "cd docs && npm install" + run: npm install + working-directory: ./docs - name: Build - run: nix develop ./nix --impure --command bash -c "cd docs && npm run build" + run: npm run build + working-directory: ./docs - name: Setup Pages uses: actions/configure-pages@v3 From 478d5562d51717f487537d99b60d760e7a13f670 Mon Sep 17 00:00:00 2001 From: Jamie Brynes Date: Wed, 28 Feb 2024 21:12:03 +0000 Subject: [PATCH 3/3] chore: swap to nix-develop-action for release pipeline as well --- .github/workflows/release.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d3c6d28..0b8e3ee 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,11 +17,18 @@ jobs: - name: Setup Magic Nix cache uses: DeterminateSystems/magic-nix-cache-action@main + - name: Use nix-develop shell + uses: nicknovitski/nix-develop@v1.1.0 + with: + arguments: ./nix --impure + - name: Install dependencies - run: nix develop ./nix --impure --command bash -c "cd plugin && npm install" + run: npm install + working-directory: ./plugin - name: Build - run: nix develop ./nix --impure --command bash -c "cd plugin && npm run build" + run: npm run build + working-directory: ./plugin - name: Release id: create_release