Skip to content

Commit

Permalink
☕ Refine GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
lambdalisue committed Feb 4, 2024
1 parent 983bb1d commit 117c25a
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 39 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/mdbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# To get started with mdBook see: https://rust-lang.github.io/mdBook/index.html
#
name: Deploy mdBook site to Pages
name: Deploy

on:
# Runs on pushes targeting the default branch
Expand Down Expand Up @@ -37,7 +37,7 @@ jobs:
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -y | sh
rustup update
cargo install --version ${MDBOOK_VERSION} mdbook
cargo install mdbook-plantuml
cargo install mdbook-alerts
- name: Setup Pages
id: pages
uses: actions/configure-pages@v4
Expand Down
18 changes: 0 additions & 18 deletions .github/workflows/reviewdog.yml

This file was deleted.

34 changes: 16 additions & 18 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,18 @@ name: Test

env:
DENO_VERSION: 1.x
MDBOOK_VERSION: 0.4.36

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
Expand All @@ -26,17 +23,18 @@ jobs:
target/
.tools/
key: ${{ runner.os }}-cargo
- uses: denoland/setup-deno@main
- uses: denoland/setup-deno@v1.1.4
with:
deno-version: ${{ env.DENO_VERSION }}
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Format
run: make fmt-check
- name: Install tools
run: make tools
- name: Generate
- name: Install mdBook
run: |
make gen
git diff --check
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -y | sh
rustup update
cargo install --version ${MDBOOK_VERSION} mdbook
cargo install mdbook-alerts
- name: Build with mdBook
run: mdbook build
- name: Format
run: deno fmt --check
- name: Misspell
uses: reviewdog/[email protected]
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Denops Documentation
# denops-documentation

[![Test](https://github.com/vim-denops/denops-documentation/actions/workflows/test.yml/badge.svg)](https://github.com/vim-denops/denops-documentation/actions/workflows/test.yml)
[![Deploy](https://github.com/vim-denops/denops-documentation/actions/workflows/mdbook.yml/badge.svg)](https://github.com/vim-denops/denops-documentation/actions/workflows/mdbook.yml)
[![Documentation](https://img.shields.io/badge/denops-Documentation-yellow.svg)](https://vim-denops.github.io/denops-documentation/)

This is an official documentation of [denops.vim], an ecosystem of Vim/Neovim
Expand Down

0 comments on commit 117c25a

Please sign in to comment.