feat: add ntn (Notion CLI) support #1176
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| jobs: | |
| get-cask-packages: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| packages: ${{ steps.get.outputs.packages }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - id: get | |
| name: Get cask packages | |
| run: | | |
| echo "packages=$( | |
| grep '^cask ' Brewfile | \ | |
| sed 's/^cask //g' | \ | |
| xargs | |
| )" >> $GITHUB_OUTPUT | |
| install: | |
| needs: [get-cask-packages] | |
| runs-on: macos-15 | |
| defaults: | |
| run: | |
| shell: zsh -l {0} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install | |
| run: | | |
| DOTFILES_DIR=$GITHUB_WORKSPACE \ | |
| NONINTERACTIVE=1 \ | |
| HOMEBREW_BUNDLE_CASK_SKIP="${{ needs.get-cask-packages.outputs.packages }}" \ | |
| MISE_GPG_VERIFY=false \ | |
| bash scripts/install.sh | |
| - name: Add DOTFILES_DIR | |
| run: | | |
| mkdir -p "$HOME/.config/dotfiles" | |
| echo "$GITHUB_WORKSPACE" >> "$HOME/.config/dotfiles/dotfiles-dir" | |
| - name: Doctor | |
| run: zsh scripts/doctor.sh | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: ".node-version" | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Setup editorconfig-checker | |
| uses: editorconfig-checker/action-editorconfig-checker@main | |
| - name: Setup Deno | |
| uses: denoland/setup-deno@v2 | |
| with: | |
| deno-version: v2.x | |
| - run: editorconfig-checker | |
| - run: deno check | |
| - run: pnpm check | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Setup Deno | |
| uses: denoland/setup-deno@v2 | |
| with: | |
| deno-version: v2.x | |
| - run: deno lint | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Setup Deno | |
| uses: denoland/setup-deno@v2 | |
| with: | |
| deno-version: v2.x | |
| - run: deno test -A |