Skip to content

feat(workspaces): add search, faster polling, and startup fixes to the panel #115

feat(workspaces): add search, faster polling, and startup fixes to the panel

feat(workspaces): add search, faster polling, and startup fixes to the panel #115

Workflow file for this run

name: OAuth Scopes
# Nightly runs use the latest preview to catch server changes before they ship.
on:
pull_request:
paths:
- src/**
- test/mocks/**
- test/scopes/**
- package.json
- pnpm-lock.yaml
- vitest.config.mts
- .github/workflows/oauth-scopes.yaml
schedule:
# GitHub delays or drops fewer scheduled runs off the hour.
- cron: "17 6 * * *"
workflow_dispatch:
permissions:
contents: read
cache-mode: read
# Cancel superseded PR runs; scheduled runs each get their own group.
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true
jobs:
live-server:
name: Live Server Test (${{ github.event_name == 'schedule' && 'coder-preview' || 'pinned release' }})
runs-on: ubuntu-24.04
timeout-minutes: 15
permissions:
contents: read
issues: write
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Setup pnpm, Node.js, and dependencies
uses: ./.github/actions/pnpm-setup
- run: docker compose -f test/scopes/compose.yaml up -d --wait
env:
CODER_IMAGE: ${{ github.event_name == 'schedule' && 'ghcr.io/coder/coder-preview:latest' || '' }}
- run: pnpm test:scopes
env:
CODER_SCOPES_TEST_URL: http://localhost:7080
# A failed scheduled run notifies only one person, so track it in an issue.
- name: Report nightly failure
if: failure() && github.event_name == 'schedule'
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
run: |
title="Nightly OAuth scope test failed"
issue=$(gh issue list --state open --search "\"$title\" in:title" --json number --jq '.[0].number')
if [ -n "$issue" ]; then
gh issue comment "$issue" --body "Failed again: $RUN_URL"
else
gh issue create --title "$title" --body "The scope test failed against \`coder-preview:latest\`: $RUN_URL"
fi