ci: switch to GitHub Actions
Signed-off-by: Wolfgang Walther <walther@technowledgy.de>
This commit is contained in:
committed by
Wolfgang Walther
parent
91f1580f95
commit
e7e102bc42
@@ -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
|
||||
@@ -0,0 +1,6 @@
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: github-actions
|
||||
directory: /
|
||||
schedule:
|
||||
interval: weekly
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user