mirror of
https://github.com/Smaug123/nix-dotfiles
synced 2025-10-05 14:48:38 +00:00
Add PR checks (#14)
This commit is contained in:
8
.github/dependabot.yml
vendored
Normal file
8
.github/dependabot.yml
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
version: 2
|
||||
updates:
|
||||
|
||||
- package-ecosystem: "github-actions"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
|
16
.github/workflows/lint.yaml
vendored
Normal file
16
.github/workflows/lint.yaml
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
name: Lint
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
name: Checkout
|
||||
- name: Run ShellCheck
|
||||
uses: ludeeus/action-shellcheck@master
|
@@ -2,7 +2,7 @@
|
||||
|
||||
install_nix () {
|
||||
echo "Installing Nix..."
|
||||
diskutil list > /dev/null || export PATH=/usr/sbin:$PATH
|
||||
diskutil list > /dev/null || export PATH="/usr/sbin:$PATH"
|
||||
curl -L https://nixos.org/nix/install | sh -s -- --darwin-use-unencrypted-nix-store-volume --daemon || exit 1
|
||||
echo "Nix installed."
|
||||
}
|
||||
|
Reference in New Issue
Block a user