Modernise #9
6
.github/workflows/rust.yml
vendored
6
.github/workflows/rust.yml
vendored
@@ -71,7 +71,7 @@ jobs:
|
|||||||
# ]
|
# ]
|
||||||
# }
|
# }
|
||||||
|
|
||||||
alejandra:
|
format:
|
||||||
{
|
{
|
||||||
"name": "Nix formatting",
|
"name": "Nix formatting",
|
||||||
"runs-on": "ubuntu-latest",
|
"runs-on": "ubuntu-latest",
|
||||||
@@ -86,8 +86,8 @@ jobs:
|
|||||||
"with": { "extra_nix_config": "access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}" }
|
"with": { "extra_nix_config": "access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}" }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Run Alejandra",
|
"name": "Run nixpkgs-fmt",
|
||||||
"run": "nix develop .#ci --command alejandra -- --check ."
|
"run": "nix develop .#ci --command nixpkgs-fmt -- --check ."
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@@ -3,17 +3,18 @@ steps:
|
|||||||
image: nixos/nix
|
image: nixos/nix
|
||||||
commands:
|
commands:
|
||||||
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
|
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
|
||||||
|
# Run through Nix
|
||||||
|
- nix build
|
||||||
|
- nix run
|
||||||
|
- nix flake check
|
||||||
# Lint
|
# Lint
|
||||||
- nix develop --command cargo -- fmt --all -- --check
|
- nix develop --command cargo -- fmt --all -- --check
|
||||||
- nix develop --command cargo -- clippy -- -D warnings -W clippy::must_use_candidate
|
- nix develop --command cargo -- clippy -- -D warnings -W clippy::must_use_candidate
|
||||||
- nix develop .#ci --command alejandra -- --check .
|
- nix develop .#ci --command nixpkgs-fmt -- --check .
|
||||||
- nix develop .#ci --command markdown-link-check README.md
|
- nix develop .#ci --command markdown-link-check README.md
|
||||||
# Test
|
# Test
|
||||||
- nix develop --command cargo test --verbose --release
|
- nix develop --command cargo test --verbose --release
|
||||||
- nix develop --command cargo test --verbose
|
- nix develop --command cargo test --verbose
|
||||||
# Run through Nix
|
|
||||||
- nix build
|
|
||||||
- nix run
|
|
||||||
|
|
||||||
when:
|
when:
|
||||||
- event: "push"
|
- event: "push"
|
||||||
|
Reference in New Issue
Block a user