Repository navigation
docs(readme): describe the owner grant as the auth server applies it #213
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
| # Brings up what `seamless init` writes: asserts the database keeps its data, and drives | |
| # the instance commands (profile login, users, org, migrate, sessions) against it. | |
| # | |
| # Everything else in CI checks the generated files as strings. This is the only job | |
| # that hands them to Docker, so it is the only one that can catch a compose file that | |
| # is well-formed and wrong. See #166 for the regression that motivated it. | |
| name: scaffold-smoke | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: scaffold-smoke-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| smoke: | |
| name: Scaffold smoke | |
| # Its own runner, so the fixed host ports and container names in the generated | |
| # compose cannot collide with the conformance stack. | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| env: | |
| HUSKY: 0 | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: '.nvmrc' | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build | |
| run: npm run build | |
| - name: Scaffold, bring up, and assert persistence | |
| run: ./scripts/scaffold-smoke.sh | |
| cli-commands: | |
| name: CLI commands | |
| # A runner of its own: the generated compose pins the same container names and | |
| # ports as the smoke job. | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| env: | |
| HUSKY: 0 | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: '.nvmrc' | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build | |
| run: npm run build | |
| # profile login stores tokens in the OS keychain, which on Linux is the Secret | |
| # Service. The runner has none, so gnome-keyring provides one for this step. | |
| - name: Install a Secret Service | |
| run: sudo apt-get update -qq && sudo apt-get install -y -qq gnome-keyring dbus-x11 | |
| - name: Scaffold, sign in, and drive the instance commands | |
| run: | | |
| dbus-run-session -- bash -c ' | |
| echo -n ci | gnome-keyring-daemon --unlock --components=secrets >/dev/null | |
| ./scripts/cli-commands-e2e.sh | |
| ' |