Skip to content
Build software only once using nix-build with the help of Cachix
JavaScript TypeScript Nix
Branch: master
Clone or download
Latest commit fdfd300 Nov 20, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows bump Nov 20, 2019
__tests__ saneSplit -> nonEmptySplit Oct 3, 2019
lib bump Oct 3, 2019
src Update src/main.ts Oct 3, 2019
.gitignore Initial commit Sep 30, 2019
LICENSE Split Nix installation into separate action Oct 2, 2019 bump Nov 20, 2019
action.yml Support pull requests Oct 3, 2019
jest.config.js Initial commit Sep 30, 2019
test.nix fix for #3 Oct 3, 2019
tsconfig.json Initial commit Sep 30, 2019
yarn.lock Install Nix via the action Oct 1, 2019


github actions badge

Build software only once using Nix with the help of Cachix.


  1. Login to Cachix and create a new cache. Backup the signing key in the process.

  2. As an admin of your github repository:

    1. Click on Settings
    2. Click on Secrets (If missing, you need to sign up first for actions beta)
    3. Add your signing key value under name CACHIX_SIGNING_KEY.
  3. Create .github/workflows/test.yml in your repo with the following contents:

name: "Test"
    runs-on: ubuntu-latest
    - uses: actions/checkout@v1
    - uses: cachix/install-nix-action@v6
    - uses: cachix/cachix-action@v2
        name: mycache
        signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
        # Only needed for private caches
        authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'

See action.yml for all options.


Install the dependencies

$ yarn install

Build the typescript

$ yarn build

Run the tests ✔️

$ yarn test
You can’t perform that action at this time.