From e474660141b48e2dbb5d1176f2f53b26f9367a4b Mon Sep 17 00:00:00 2001 From: kirinnee Date: Wed, 25 Oct 2023 19:45:56 +0800 Subject: [PATCH] feat: add ci --- .github/dependabot.yml | 14 ++++++++++++++ .github/workflows/ci.yaml | 15 +++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/ci.yaml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..5918193 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,14 @@ +version: 2 +updates: + - package-ecosystem: github-actions + directory: / + schedule: + interval: daily + - package-ecosystem: docker + directory: / + schedule: + interval: daily + - package-ecosystem: npm + directory: / + schedule: + interval: daily diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..7b2ec23 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,15 @@ +name: CI-CD + +on: + push: + +jobs: + precommit: + name: Pre-commit Check + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + - uses: DeterminateSystems/nix-installer-action@main + - uses: DeterminateSystems/magic-nix-cache-action@main + - name: Run pre-commit + run: nix develop .#ci -c ./scripts/ci/pre-commit.sh