Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use nix-develop action for CI #286

Merged
merged 3 commits into from
Feb 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
17 changes: 13 additions & 4 deletions .github/workflows/premerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
11 changes: 9 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading