Add PR checks (#14)

This commit is contained in:
Patrick Stevens
2022-11-24 19:30:04 +00:00
committed by GitHub
parent 460af9d007
commit 4e6c9b03af
3 changed files with 25 additions and 1 deletions

8
.github/dependabot.yml vendored Normal file
View File

@@ -0,0 +1,8 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"

16
.github/workflows/lint.yaml vendored Normal file
View 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

View File

@@ -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."
}