Skip to content

Commit

Permalink
Merge branch 'main' into codemirror-modal
Browse files Browse the repository at this point in the history
  • Loading branch information
hardingjam committed Sep 30, 2024
2 parents 45d8675 + 94f55fc commit 418c54f
Show file tree
Hide file tree
Showing 11 changed files with 20,210 additions and 29,746 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/rainix.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Rainix CI
on: [push]

concurrency:
group: ${{ github.ref }}-rainix
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
standard-tests:
strategy:
matrix:
os: [ubuntu-latest]
task: [rainframe-test]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v4
- uses: DeterminateSystems/magic-nix-cache-action@v2
- name: Run ${{ matrix.task }}
run: nix develop -c ${{ matrix.task }}
300 changes: 300 additions & 0 deletions flake.lock

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

36 changes: 36 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
description = "Flake for development workflows.";

inputs = {
rainix.url = "github:rainprotocol/rainix";
flake-utils.url = "github:numtide/flake-utils";
};

outputs = { self, flake-utils, rainix }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = rainix.pkgs.${system};
in rec {
packages = rec {
rainframe-test = rainix.mkTask.${system} {
name = "rainframe-test";
body = ''
set -euxo pipefail
npm i
'';
};

} // rainix.packages.${system};

devShells.default = pkgs.mkShell {
packages = [
packages.rainframe-test
];

shellHook = rainix.devShells.${system}.default.shellHook;
buildInputs = rainix.devShells.${system}.default.buildInputs;
nativeBuildInputs = rainix.devShells.${system}.default.nativeBuildInputs;
};
}
);
}
Loading

0 comments on commit 418c54f

Please sign in to comment.