Skip to content

Commit

Permalink
Update workflows for nix develop
Browse files Browse the repository at this point in the history
  • Loading branch information
ninokeldishvili committed May 7, 2024
1 parent f5b655d commit 4fc0f3e
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 6 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,12 @@ jobs:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v18
with:
nix_path: nixpkgs=channel:nixos-unstable
- run: nix-shell --run ci-lint
fetch-depth: 0
submodules: recursive

- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v4
- uses: DeterminateSystems/magic-nix-cache-action@v2

- name: CI lint
run: nix develop -c ci-lint
11 changes: 9 additions & 2 deletions .github/workflows/security.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,12 @@ jobs:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v18
with:
nix_path: nixpkgs=channel:nixos-unstable
- run: nix-shell --run security-check
fetch-depth: 0
submodules: recursive

- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v4
- uses: DeterminateSystems/magic-nix-cache-action@v2

- name: Security check
run: nix-shell --run security-check
11 changes: 9 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,12 @@ jobs:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v18
with:
nix_path: nixpkgs=channel:nixos-unstable
- run: nix-shell --run "hardhat test"
fetch-depth: 0
submodules: recursive

- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v4
- uses: DeterminateSystems/magic-nix-cache-action@v2

- name: Hardhat test
run: nix develop -c "hardhat test"

0 comments on commit 4fc0f3e

Please sign in to comment.