Skip to content

Updated the api to be have new features #140

Updated the api to be have new features

Updated the api to be have new features #140

Workflow file for this run

name: Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
static-analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install cargo components
run: |
rustup component add rustfmt
rustup component add clippy
- name: Rust Format
run: cargo fmt --all -- --check
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Rust Cache
uses: Swatinem/[email protected]
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --all-targets
- name: Run tests
uses: actions-rs/cargo@v1
env:
NOTION_API_TOKEN: ${{ secrets.NOTION_API_TOKEN }}
with:
command: test
args: --all-features
- name: Docs
uses: actions-rs/cargo@v1
env:
NOTION_API_TOKEN: ${{ secrets.NOTION_API_TOKEN }}
with:
command: doc