ci: switch to GitHub Actions

Signed-off-by: Wolfgang Walther <walther@technowledgy.de>
This commit is contained in:
Wolfgang Walther
2022-01-30 16:32:14 +01:00
committed by Wolfgang Walther
parent 91f1580f95
commit e7e102bc42
3 changed files with 46 additions and 45 deletions
-45
View File
@@ -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
+6
View File
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
+40
View File
@@ -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