Configures Nix on GitHub Actions for the supported platforms: Linux and macOS.
Create .github/workflows/ci.yml in your repo with the following contents:
name: "CI"
on:
  pull_request:
  push:
jobs:
  tests:
    runs-on: ubuntu-latest
    steps:
    - name: Checkout
      uses: actions/checkout@v3
    - name: Install Nix
      uses: cachix/install-nix-action
    - name: Configure Nix
      uses: flox/configure-nix-action
      with: ...options...
    - name: Build
      run: nix build ...See ./action.yml file.