From e7e102bc4281fc654f98f384c7d0b374b6ba22b2 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sun, 30 Jan 2022 11:09:41 +0100 Subject: [PATCH] ci: switch to GitHub Actions Signed-off-by: Wolfgang Walther --- .circleci/config.yml | 45 --------------------------------------- .github/dependabot.yml | 6 ++++++ .github/workflows/ci.yaml | 40 ++++++++++++++++++++++++++++++++++ 3 files changed, 46 insertions(+), 45 deletions(-) delete mode 100644 .circleci/config.yml create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/ci.yaml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 36c6ba737..000000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,45 +0,0 @@ -version: 2.1 - -jobs: - build: - docker: - - image: nixos/nix:2.3 - steps: - - checkout - - run: - name: Install build script - command: nix-env -f default.nix -iA build - - run: - name: Build docs - command: postgrest-docs-build - - spellcheck: - docker: - - image: nixos/nix:2.3 - steps: - - checkout - - run: - name: Install spellcheck script - command: nix-env -f default.nix -iA spellcheck - - run: - name: Run spellcheck - command: postgrest-docs-spellcheck - - linkcheck: - docker: - - image: nixos/nix:2.3 - steps: - - checkout - - run: - name: Install linkcheck script - command: nix-env -f default.nix -iA linkcheck - - run: - name: Run linkcheck - command: postgrest-docs-linkcheck - -workflows: - check: - jobs: - - build - - spellcheck - - linkcheck diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 000000000..e2347a8c7 --- /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.yaml b/.github/workflows/ci.yaml new file mode 100644 index 000000000..4f4c76349 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,40 @@ +name: CI + +on: + push: + branches: + - main + - v* + pull_request: + branches: + - main + - v* + +jobs: + build: + name: Build docs + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2.4.0 + - uses: cachix/install-nix-action@v16 + - run: nix-env -f default.nix -iA build + - run: postgrest-docs-build + + spellcheck: + name: Run spellcheck + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2.4.0 + - uses: cachix/install-nix-action@v16 + - run: nix-env -f default.nix -iA spellcheck + - run: postgrest-docs-spellcheck + + linkcheck: + name: Run linkcheck + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2.4.0 + - uses: cachix/install-nix-action@v16 + - run: nix-env -f default.nix -iA linkcheck + - run: postgrest-docs-linkcheck +