chore: working base server from actix #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test CI | |
on: [push, pull_request] | |
jobs: | |
test-flake: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repository | |
uses: actions/checkout@v4 | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@main | |
- name: Cache Nix store | |
uses: DeterminateSystems/magic-nix-cache-action@main | |
- name: Check up flake configuration | |
run: nix flake check --all-systems --show-trace | |
test-project: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repository | |
uses: actions/checkout@v4 | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@main | |
- name: Cache Nix store | |
uses: DeterminateSystems/magic-nix-cache-action@main | |
- name: Build the project with Nix | |
run: nix build | |
- name: Run all cargo tests | |
run: nix develop --command -- cargo test |