name: "Build and test"
on:
  push:

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: https://gitea.com/actions/checkout@v3
      - name: Install nix
        uses: https://github.com/cachix/install-nix-action@v23
        with:
          github_access_token: ${{ secrets.INPUT_GITHUB_ACCESS_TOKEN }}
      - name: Build package
        run: nix build