Skip to content

Commit

Permalink
Merge pull request #193 from cachix/bump-deps
Browse files Browse the repository at this point in the history
Bump dependencies
  • Loading branch information
sandydoo authored Nov 21, 2024
2 parents b3ccead + 0874ded commit 3fcfc31
Show file tree
Hide file tree
Showing 16 changed files with 25,936 additions and 3,134 deletions.
4 changes: 2 additions & 2 deletions .envrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
source_url "https://raw.githubusercontent.com/cachix/devenv/d1f7b48e35e6dee421cfd0f51481d17f77586997/direnvrc" "sha256-YBzqskFZxmNb3kYVoKD9ZixoPXJh1C9ZvTLGFRkauZ0="
source_url "https://raw.githubusercontent.com/cachix/devenv/82c0147677e510b247d8b9165c54f73d32dfd899/direnvrc" "sha256-7u4iDd1nZpxL4tCzmPG0dQgC5V+/44Ba+tHkPob1v2k="

use devenv
use devenv
19 changes: 9 additions & 10 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
version: 2
updates:

- package-ecosystem: github-actions
directory: "/"
schedule:
interval: daily
time: '00:00'
timezone: UTC
open-pull-requests-limit: 10
commit-message:
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: daily
time: "00:00"
timezone: UTC
open-pull-requests-limit: 10
commit-message:
prefix: "chore"
include: "scope"
include: "scope"
150 changes: 75 additions & 75 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@ jobs:
useDaemon: [true, false]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- run: yarn install --frozen-lockfile
- run: yarn build
# check if typescript generation was committed
- run: git diff --exit-code
- uses: cachix/install-nix-action@v30
- name: Test public cache
uses: ./
with:
name: cachix-action
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
useDaemon: ${{ matrix.useDaemon }}
- run: nix-build test.nix
- uses: actions/checkout@v4
- run: yarn install --frozen-lockfile
- run: yarn build
# check if typescript generation was committed
- run: git diff --exit-code
- uses: cachix/install-nix-action@v30
- name: Test public cache
uses: ./
with:
name: cachix-action
signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}"
useDaemon: ${{ matrix.useDaemon }}
- run: nix-build test.nix

public-cache-no-signing-key:
strategy:
Expand All @@ -37,16 +37,16 @@ jobs:
useDaemon: [true, false]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- run: yarn install --frozen-lockfile
- run: yarn build
- uses: cachix/install-nix-action@v30
- name: Test public cache no signing key
uses: ./
with:
name: cachix-action
useDaemon: ${{ matrix.useDaemon }}
- run: nix-build test.nix
- uses: actions/checkout@v4
- run: yarn install --frozen-lockfile
- run: yarn build
- uses: cachix/install-nix-action@v30
- name: Test public cache no signing key
uses: ./
with:
name: cachix-action
useDaemon: ${{ matrix.useDaemon }}
- run: nix-build test.nix

private-cache:
if: ${{ github.ref == 'refs/heads/master' }}
Expand All @@ -56,76 +56,76 @@ jobs:
useDaemon: [true, false]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- run: yarn install --frozen-lockfile
- run: yarn build
- uses: cachix/install-nix-action@v30
- name: Test private cache
uses: ./
with:
name: cachix-action-private
signingKey: '${{ secrets.CACHIX_SIGNING_KEY_PRIVATE }}'
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
useDaemon: ${{ matrix.useDaemon }}
- run: nix-build test.nix
- uses: actions/checkout@v4
- run: yarn install --frozen-lockfile
- run: yarn build
- uses: cachix/install-nix-action@v30
- name: Test private cache
uses: ./
with:
name: cachix-action-private
signingKey: "${{ secrets.CACHIX_SIGNING_KEY_PRIVATE }}"
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
useDaemon: ${{ matrix.useDaemon }}
- run: nix-build test.nix

push-paths:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- run: yarn install --frozen-lockfile
- run: yarn build
- uses: cachix/install-nix-action@v30
- id: paths
run: |
paths=$(nix-instantiate test.nix | tr '\n' ' ')
echo "OUT_PATHS=$paths" >> $GITHUB_OUTPUT
- name: Test pushPaths
uses: ./
with:
name: cachix-action
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
pathsToPush: '${{ steps.paths.outputs.OUT_PATHS }}'
- uses: actions/checkout@v4
- run: yarn install --frozen-lockfile
- run: yarn build
- uses: cachix/install-nix-action@v30
- id: paths
run: |
paths=$(nix-instantiate test.nix | tr '\n' ' ')
echo "OUT_PATHS=$paths" >> $GITHUB_OUTPUT
- name: Test pushPaths
uses: ./
with:
name: cachix-action
signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}"
pathsToPush: "${{ steps.paths.outputs.OUT_PATHS }}"

installCommand:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- run: yarn install --frozen-lockfile
- run: yarn build
- uses: cachix/install-nix-action@v30
- name: Test private cache
uses: ./
with:
name: cachix-action
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
installCommand: 'nix-env -j8 -f https://cachix.org/api/v1/install -iA cachix'
- run: nix-build test.nix
- uses: actions/checkout@v4
- run: yarn install --frozen-lockfile
- run: yarn build
- uses: cachix/install-nix-action@v30
- name: Test private cache
uses: ./
with:
name: cachix-action
signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}"
installCommand: "nix-env -j8 -f https://cachix.org/api/v1/install -iA cachix"
- run: nix-build test.nix

nix-master:
strategy:
matrix:
os: [ubuntu-latest, macos-13]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v30
with:
nix_path: nixpkgs=channel:nixos-22.11
install_url: https://nixos-nix-install-tests.cachix.org/serve/kkq45x7yrzvxq8627fi6hkswnfa7mg2l/install
install_options: '--tarball-url-prefix https://nixos-nix-install-tests.cachix.org/serve'
- run: yarn install --frozen-lockfile
- run: yarn build
- name: Test public cache
uses: ./
with:
name: cachix-action
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
- run: nix-build test.nix
- uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v30
with:
nix_path: nixpkgs=channel:nixos-22.11
install_url: https://nixos-nix-install-tests.cachix.org/serve/kkq45x7yrzvxq8627fi6hkswnfa7mg2l/install
install_options: "--tarball-url-prefix https://nixos-nix-install-tests.cachix.org/serve"
- run: yarn install --frozen-lockfile
- run: yarn build
- name: Test public cache
uses: ./
with:
name: cachix-action
signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}"
- run: nix-build test.nix
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,20 @@ Note that malicious code submitted via forked pull request can, once merged into

## Hacking

Install the dependencies
Install the dependencies

```bash
$ yarn install
```

Build the typescript

```bash
$ yarn build
```

Run the tests :heavy_check_mark:
Run the tests :heavy_check_mark:

```bash
$ yarn test
```
42 changes: 21 additions & 21 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
name: 'Cachix'
description: 'nix-build with the help of caching to Cachix'
author: 'Domen Kožar'
name: "Cachix"
description: "nix-build with the help of caching to Cachix"
author: "Domen Kožar"
inputs:
name:
description: 'Name of a cachix cache to push and pull/substitute'
description: "Name of a cachix cache to push and pull/substitute"
required: true
extraPullNames:
description: 'Comma-separated list of names for extra cachix caches to pull/substitute'
description: "Comma-separated list of names for extra cachix caches to pull/substitute"
authToken:
description: 'Authentication token for Cachix, needed for private cache access or to push using an Auth Token'
description: "Authentication token for Cachix, needed for private cache access or to push using an Auth Token"
signingKey:
description: 'Signing key secret retrieved after creating binary cache on https://cachix.org'
description: "Signing key secret retrieved after creating binary cache on https://cachix.org"
skipPush:
description: 'Set to true to disable pushing build results to the cache'
default: 'false'
description: "Set to true to disable pushing build results to the cache"
default: "false"
pathsToPush:
description: 'Whitespace-separated list of paths to push. Leave empty to push every build result.'
description: "Whitespace-separated list of paths to push. Leave empty to push every build result."
pushFilter:
description: 'Ignored if pathsToPush is set. Regular expression to exclude derivations for the cache push, for example "(-source$|nixpkgs\.tar\.gz$)". Warning: this filter does not guarantee it will not get pushed in case the path is part of the closure of something that will get pushed.'
cachixArgs:
description: 'Extra command-line arguments to pass to cachix. If empty, defaults to -j8'
description: "Extra command-line arguments to pass to cachix. If empty, defaults to -j8"
skipAddingSubstituter:
description: 'Set to true to skip adding cachix cache as a substitute'
default: 'false'
description: "Set to true to skip adding cachix cache as a substitute"
default: "false"
useDaemon:
description: "Push store paths to the cache as they're built with the Cachix Daemon"
default: 'true'
default: "true"
cachixBin:
description: 'Provide a custom path to the cachix binary'
description: "Provide a custom path to the cachix binary"
installCommand:
description: 'Override the default cachix installation method'
description: "Override the default cachix installation method"
branding:
color: 'blue'
icon: 'database'
color: "blue"
icon: "database"
runs:
using: 'node20'
main: 'dist/main/index.js'
post: 'dist/main/index.js'
using: "node20"
main: "dist/main/index.js"
post: "dist/main/index.js"
Loading

0 comments on commit 3fcfc31

Please sign in to comment.