diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml new file mode 100644 index 0000000..ffd8aa5 --- /dev/null +++ b/.github/workflows/check.yaml @@ -0,0 +1,18 @@ +name: CI +on: + pull_request: + push: + branches: [main] +jobs: + test: + name: Check repository + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Check flake.lock + uses: DeterminateSystems/flake-checker-action@v5 + - name: Intall Nix + uses: DeterminateSystems/nix-installer-action@v10 + - name: Check repository + run: nix flake check \ No newline at end of file diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml new file mode 100644 index 0000000..d0dfac7 --- /dev/null +++ b/.github/workflows/update.yml @@ -0,0 +1,21 @@ +name: Update dependencies +on: + workflow_dispatch: + schedule: + - cron: '0 0 * * *' # Run every day at 00:00 + +jobs: + update: + name: Update flake.lock + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Intall Nix + uses: DeterminateSystems/nix-installer-action@v10 + - name: Update flake.lock file + uses: DeterminateSystems/update-flake-lock@v21 + with: + pr-title: "chore(deps): update flake.lock" + pr-labels: | + type: deps \ No newline at end of file