diff options
| author | Franck Cuny <franck@fcuny.net> | 2024-12-28 13:05:08 -0800 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2024-12-28 13:05:08 -0800 |
| commit | a4446d16ed3704059f4c62580e663d7a9d75c1c5 (patch) | |
| tree | 01486fb13fe464b3b8225e11bcc502a722d8aad0 | |
| parent | enable starship (diff) | |
| download | infra-a4446d16ed3704059f4c62580e663d7a9d75c1c5.tar.gz | |
add workflows and dependabot
| -rw-r--r-- | .github/dependabot.yml | 6 | ||||
| -rw-r--r-- | .github/workflows/ci.yml | 20 | ||||
| -rw-r--r-- | .github/workflows/flake-checker.yml | 18 |
3 files changed, 44 insertions, 0 deletions
diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..5ace460 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..5dd969c --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,20 @@ +name: CI + +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] + +jobs: + format: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: ❄️ Install Nix + uses: DeterminateSystems/nix-installer-action@v16 + + - name: ❄️ Check formatting + run: nix fmt diff --git a/.github/workflows/flake-checker.yml b/.github/workflows/flake-checker.yml new file mode 100644 index 0000000..45b3115 --- /dev/null +++ b/.github/workflows/flake-checker.yml @@ -0,0 +1,18 @@ +name: ❄️ Flake Checker + +on: + push: + branches: + - master + schedule: + - cron: "42 0 * * 6" + workflow_dispatch: + +jobs: + flake-checker: + name: Flake Checker + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: DeterminateSystems/nix-installer-action@v16 + - uses: DeterminateSystems/flake-checker-action@v9 |
