Skip to content

Add docs about GitHub Action #1748

Add docs about GitHub Action

Add docs about GitHub Action #1748

name: Check PR compiles without errors
on:
pull_request:
branches: [master]
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
with:
nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/a95ed9fe764c3ba2bf2d2fa223012c379cd6b32e.tar.gz
- uses: cachix/cachix-action@v12
with:
name: digitallyinduced
skipPush: true
- name: Install devenv.sh
run: nix profile install --accept-flake-config github:cachix/devenv/latest
- run: |
cd $GITHUB_WORKSPACE
mkdir -p ~/.config/nixpkgs
echo "{ allowBroken = true; }" >> ~/.config/nixpkgs/config.nix
devenv shell fastbuild