fix(auth+cli): fix OAuth browser flows on Linux; reduce prompts during api sync #105
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 | |
| - v2 | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| name: Test and build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v5 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| cache: true | |
| - name: Download modules | |
| run: go mod download | |
| - name: Run tests | |
| run: go test ./... | |
| - name: Run integration tests | |
| run: go test -tags=integration ./... | |
| - name: Build binaries | |
| run: | | |
| go build ./cmd/restish | |
| go build ./cmd/restish-bulk | |
| go build ./cmd/restish-csv | |
| go build ./cmd/restish-mcp | |
| go build ./cmd/restish-pkcs11 | |
| docs: | |
| name: Docs | |
| runs-on: ubuntu-latest | |
| env: | |
| HUGO_VERSION: "0.160.0" | |
| NODE_VERSION: "24" | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v5 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| cache: true | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| cache: npm | |
| cache-dependency-path: site/package-lock.json | |
| - name: Install Hugo | |
| run: | | |
| mkdir -p "${HOME}/.local/hugo" | |
| curl -sL "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.tar.gz" \ | |
| | tar -xz -C "${HOME}/.local/hugo" | |
| echo "${HOME}/.local/hugo" >> "${GITHUB_PATH}" | |
| - name: Install Node.js dependencies | |
| working-directory: site | |
| run: npm ci | |
| - name: Check generated docs | |
| run: go run ./cmd/restish-docgen --check | |
| - name: Generate social preview images | |
| working-directory: site | |
| run: npm run social-images | |
| - name: Build docs site | |
| run: | | |
| hugo --source site --quiet --gc --minify \ | |
| --cacheDir "${{ runner.temp }}/hugo_cache" | |
| - name: Check docs links | |
| run: scripts/check-doc-links.rb | |
| - name: Check docs examples | |
| run: scripts/check-doc-examples.rb |