Skip to content

Commit

Permalink
Merge pull request #50 from metaborg/test-records
Browse files Browse the repository at this point in the history
Test records
  • Loading branch information
jdonszelmann authored May 27, 2024
2 parents b6346ba + 30c3133 commit 212c597
Show file tree
Hide file tree
Showing 11 changed files with 1,016 additions and 836 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake;
18 changes: 18 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ jobs:
command: test
args: --all-features

- name: Run cargo examples tests
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --examples

test-beta:
name: Test Beta
runs-on: ubuntu-latest
Expand All @@ -76,6 +82,12 @@ jobs:
command: test
args: --all-features

- name: Run cargo examples tests
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --examples

test-stable:
name: Test Stable
runs-on: ubuntu-latest
Expand All @@ -92,3 +104,9 @@ jobs:
with:
command: test
args: --all-features

- name: Run cargo examples tests
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --examples
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ Cargo.lock
.vscode/
.idea/

*.dot
*.dot
.direnv
85 changes: 85 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-utils.follows = "flake-utils";
};
};
};

outputs = { self, nixpkgs, rust-overlay, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [ (import rust-overlay) ];
};
in {
devShells.default = pkgs.mkShell rec {
rustToolchain = pkgs.rust-bin.stable.latest.default.override {
targets = [ "wasm32-unknown-unknown" ];
extensions = [ "rust-src" "rust-analyzer" ];
};
RUST_SRC_PATH = "${rustToolchain}/lib/rustlib/src/rust/library";

buildInputs = with pkgs; [ trunk rustToolchain cargo-watch ];
};
});
}
Loading

0 comments on commit 212c597

Please sign in to comment.