Skip to content

Commit

Permalink
Merge pull request #116 from picture-pro/rust-deps-update
Browse files Browse the repository at this point in the history
feat: upgraded CI
  • Loading branch information
johnbchron authored Apr 4, 2024
2 parents 66eea25 + b5f103d commit ca4ae65
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:

flake-check:
runs-on: ubuntu-22.04
strategy:
matrix:
check: [ "app-hydrate-clippy", "app-ssr-clippy", "site-server-clippy", "site-frontend-clippy", "site-server-doc", "site-server-fmt", "site-server-deny", "site-server-nextest" ]
steps:
- uses: actions/checkout@v3
- name: Install Nix
Expand All @@ -35,7 +38,7 @@ jobs:
- name: Check flake inputs
uses: DeterminateSystems/flake-checker-action@main
- name: Run flake checks
run: nix flake check -L
run: nix build "./#checks.x86_64-linux.${{ matrix.check }}" -L

fly-check:
runs-on: ubuntu-22.04
Expand Down
9 changes: 5 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@

in {
checks = {
# lint packages
app-hydrate-clippy = craneLib.cargoClippy (common_args // {
cargoArtifacts = site-server-deps;
cargoClippyExtraArgs = "-p site-app --features hydrate -- --deny warnings";
Expand All @@ -152,28 +153,28 @@
cargoClippyExtraArgs = "-p site-frontend -- --deny warnings";
});

# make sure the docs build
site-server-doc = craneLib.cargoDoc (common_args // {
cargoArtifacts = site-server-deps;
});

# check formatting
site-server-fmt = craneLib.cargoFmt {
pname = common_args.pname;
version = common_args.version;

inherit src;
};

# Audit licenses
# audit licenses
site-server-deny = craneLib.cargoDeny {
pname = common_args.pname;
version = common_args.version;

inherit src;
};

# Run tests with cargo-nextest
# Consider setting `doCheck = false` on `site-server` if you do not want
# the tests to run twice
# run tests
site-server-nextest = craneLib.cargoNextest (common_args // {
cargoArtifacts = site-server-deps;
partitions = 1;
Expand Down

0 comments on commit ca4ae65

Please sign in to comment.