ripgrep-all/.github/workflows/ci.yml

26 lines
686 B
YAML
Raw Normal View History

2022-12-25 18:02:32 +00:00
# Based on https://github.com/actions-rs/meta/blob/master/recipes/quickstart.md
#
# While our "example" application has platform-specific code,
# for simplicity we are compiling and testing everything in a nix-on-Linux environment only.
2022-12-25 18:02:32 +00:00
on: [push, pull_request]
2020-05-19 09:10:11 +00:00
name: ci
2022-12-25 18:02:32 +00:00
2020-05-19 09:10:11 +00:00
jobs:
nix-flake-check:
2023-07-03 16:58:20 +00:00
name: nix flake check
2022-12-25 18:02:32 +00:00
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
2020-05-19 09:10:11 +00:00
- name: Install nix
uses: cachix/install-nix-action@v21
2020-05-19 09:10:11 +00:00
- name: Ensure the build succeeds
run: nix build
2020-05-19 09:10:11 +00:00
- name: Run `nix flake check` to run formatters, linters, and tests
run: nix flake check --print-build-logs