Skip to content

Migrate from Flakes to Devenv #373

Migrate from Flakes to Devenv

Migrate from Flakes to Devenv #373

Workflow file for this run

---
name: Devenv
on:
push:
branches:
- trunk
pull_request:
branches:
- "trunk"
paths:
- .github/workflows/devenv.yaml
- devenv.nix
- devenv.nix
- devenv.lock
- devenv/**
permissions:
contents: write
packages: write
pull-requests: write
statuses: read
env:
NIXPKGS_ALLOW_UNFREE: 1
PROJECT: ${{ github.repository }}
BRANCH_NAME_CURRENT: ${{ github.head_ref || github.ref_name }}
BRANCH_NAME_DEFAULT: ${{ github.event.repository.default_branch }}
defaults:
run:
shell: bash
jobs:
##################################################
# Test
##################################################
test:
name: Test
runs-on: ${{ matrix.os }}
timeout-minutes: 60
continue-on-error: false
strategy:
fail-fast: true
matrix:
os:
- ubuntu-latest
steps:
- id: checkout_repository
name: Checkout repository
uses: actions/checkout@v4
with:
lfs: false
submodules: recursive
- id: install_nix
name: "Install Nix ❄️"
uses: cachix/install-nix-action@v26
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
enable_kvm: true
- id: cachix
name: "Enable Cachix ❄️"
uses: cachix/cachix-action@v14
with:
name: ${{ secrets.CACHIX_CACHE_NAME }}
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
useDaemon: true
skipPush: false
- id: cache
name: Magic Nix cache
uses: DeterminateSystems/magic-nix-cache-action@main
- id: devenv_install
name: Devenv install
run: |
nix profile install tarball+https://install.devenv.sh/latest
- id: devenv_shell
name: Devenv shell
run: |
devenv shell
- id: devenv_test
name: Devenv test
run: |
devenv test