Skip to content

test(ymax-planner): Use a shorter timeout for gmp-watcher.test.ts (#1… #5779

test(ymax-planner): Use a shorter timeout for gmp-watcher.test.ts (#1…

test(ymax-planner): Use a shorter timeout for gmp-watcher.test.ts (#1… #5779

Workflow file for this run

name: Nix Flake Check
env:
# Use the magic cache with Actions cache@v2 (current active version).
# Set to '' to disable the cache, or 'true' to enable.
#
# TODO: This feature currently causes long delays if enabled:
# TODO(https://github.com/jashandeep-sohi/action-cache-api-shim/issues/19)
USE_MAGIC_NIX_CACHE: ''
on:
pull_request:
push:
branches:
- master
- 'release-*'
- 'dev-*'
permissions:
contents: read
jobs:
flake-check:
timeout-minutes: 25
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Enable Nix cache via GitHub's cache-action
uses: DeterminateSystems/magic-nix-cache-action@v8
with:
use-flakehub: false
diagnostic-endpoint: ''
- name: Check Nix flake inputs
run: nix flake check
- name: Show flake metadata
if: always() # Run even if previous step fails
run: nix flake metadata
- name: Validate flake outputs
if: always() # Run even if previous step fails
run: nix flake show
- name: Check build in Nix dev shell
run: |
# Enter nix develop and run build commands
nix develop --command bash -c '
# Install dependencies
yarn install
# Build the project
yarn build
# Build cosmic-swingset
cd packages/cosmic-swingset && make
'