Skip to content

Commit

Permalink
test nix
Browse files Browse the repository at this point in the history
  • Loading branch information
doshitan committed Dec 24, 2024
1 parent 297cfa1 commit 7421012
Showing 1 changed file with 35 additions and 33 deletions.
68 changes: 35 additions & 33 deletions .github/workflows/ci-nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,50 +20,52 @@ jobs:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
with:
diff-store: true

- name: Run build
run: nix build

lint:
name: Lint
runs-on: ubuntu-latest
needs: build
# lint:
# name: Lint
# runs-on: ubuntu-latest
# needs: build

steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: DeterminateSystems/flake-checker-action@main
# steps:
# - uses: actions/checkout@v4
# - uses: DeterminateSystems/nix-installer-action@main
# - uses: DeterminateSystems/magic-nix-cache-action@main
# - uses: DeterminateSystems/flake-checker-action@main

- name: Run lint
run: nix develop --command bash -c "make check-static"
# - name: Run lint
# run: nix develop --command bash -c "make check-static"

test:
name: Test
runs-on: ubuntu-latest
needs: build
# test:
# name: Test
# runs-on: ubuntu-latest
# needs: build

steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
# steps:
# - uses: actions/checkout@v4
# - uses: DeterminateSystems/nix-installer-action@main
# - uses: DeterminateSystems/magic-nix-cache-action@main

- name: Run tests
run: nix develop --command bash -c "make test"
# - name: Run tests
# run: nix develop --command bash -c "make test"


install:
name: Install
runs-on: ubuntu-latest
needs: build
# install:
# name: Install
# runs-on: ubuntu-latest
# needs: build

steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
# steps:
# - uses: actions/checkout@v4
# - uses: DeterminateSystems/nix-installer-action@main
# - uses: DeterminateSystems/magic-nix-cache-action@main

- name: Run install
run: nix profile install --accept-flake-config '.'
# - name: Run install
# run: nix profile install --accept-flake-config '.'

- name: Run --help
run: nava-platform --help
# - name: Run --help
# run: nava-platform --help

0 comments on commit 7421012

Please sign in to comment.