update nix, add rubocop #17
This file contains 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: Run tests | |
on: | |
pull_request: | |
branches: | |
- "master" | |
push: | |
branches: | |
- "master" | |
# We also provide a way to run this manually, if needed. | |
workflow_dispatch: | |
jobs: | |
ci: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Install Nix | |
uses: cachix/install-nix-action@v26 | |
with: | |
nix_path: nixpkgs=channel:nixos-24.05 | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Run tests | |
run: nix-develop --command rspec | |
- name: Run rubocop | |
run: nix-develop --command rubocop |