Skip to content

Commit

Permalink
add ci
Browse files Browse the repository at this point in the history
  • Loading branch information
thedavidmeister committed Sep 27, 2024
1 parent e7be293 commit 2439b30
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
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 }}
11 changes: 10 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,16 @@
outputs = { self, flake-utils, rainix }:
flake-utils.lib.eachDefaultSystem (system:
{
packages = rainix.packages.${system};
packages = rec {
rainframe-test = rainix.mkTask.${system} {
name = "rainframe-test";
body = ''
set -euxo pipefail
npm i
'';
};

} // rainix.packages.${system};
devShells = rainix.devShells.${system};
}
);
Expand Down

0 comments on commit 2439b30

Please sign in to comment.