Skip to content

fix: skip login page when authenticating with SSO #450

fix: skip login page when authenticating with SSO

fix: skip login page when authenticating with SSO #450

Workflow file for this run

name: CI
on:
push:
env:
VSCODE_INSIDERS_VERSION: 1.87.2
jobs:
prepare:
# This first step pulls dependencies and compiles the extension.
# The results are cached to speed up the next three steps.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
id: cache-modules
with:
path: node_modules
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-modules-
- uses: actions/cache@v3
id: cache-vscode-test
with:
path: .vscode-test/vscode-*
key: ${{ runner.os }}-vscode-test
- uses: actions/cache@v3
id: cache-out
with:
path: out
key: ${{ github.sha }}
- uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
- run: yarn install --immutable
- run: yarn pretest
- run: yarn test:precache
- run: yarn compile
unit:
needs: prepare
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
id: cache-modules
with:
path: node_modules
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-modules-
- uses: actions/cache@v3
id: cache-vscode-test
with:
path: .vscode-test/vscode-*
key: ${{ runner.os }}-vscode-test
- uses: actions/cache@v3
id: cache-out
with:
path: out
key: ${{ github.sha }}
- uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
- run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- yarn test:unit
name: Run unit tests
integration:
needs: prepare
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
id: cache-modules
with:
path: node_modules
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-modules-
- uses: actions/cache@v3
id: cache-vscode-test
with:
path: .vscode-test/vscode-*
key: ${{ runner.os }}-vscode-test
- uses: actions/cache@v3
id: cache-out
with:
path: out
key: ${{ github.sha }}
- uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
- run: |
export XDG_RUNTIME_DIR=/run/user/$(id -u)
export DBUS_SESSION_BUS_ADDRESS=unix:path=$XDG_RUNTIME_DIR/bus
dbus-daemon --session --address=$DBUS_SESSION_BUS_ADDRESS --nofork --nopidfile --syslog-only &
xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- yarn test:integration
name: Run integration tests
release:
runs-on: ubuntu-latest
needs: [unit, integration]
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- uses: actions/cache@v3
id: cache-modules
with:
path: node_modules
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-modules-
- uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
- run: yarn semantic-release
env:
GH_TOKEN: ${{ secrets.SEMANTIC_RELEASE_BOT_GITHUB_TOKEN }}
VSCE_TOKEN: ${{ secrets.SEMANTIC_RELEASE_BOT_VSCE_TOKEN }}
GIT_AUTHOR_NAME: appland-release
GIT_AUTHOR_EMAIL: [email protected]
GIT_COMMITTER_NAME: appland-release
GIT_COMMITTER_EMAIL: [email protected]