refactor: change sqlalchemy_oso
authorization logs from INFO to DEBUG level
#1240
Workflow file for this run
This file contains 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: Test VSCode Extension | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
ci: | |
name: Fmt / Lint / Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/cache@v2 | |
with: | |
path: | | |
~/.cargo/registry | |
~/.cargo/git | |
target | |
key: ${{ runner.os }}-cargo-check-${{ hashFiles('**/Cargo.lock') }} | |
# NOTE(gj): Rust formatting & Clippy check happens in test.yml. | |
- name: Use Node.js 12 | |
uses: actions/setup-node@v1 | |
with: | |
node-version: "12" | |
- name: Check formatting of JS library | |
working-directory: "vscode/oso" | |
run: make fmtcheck | |
- name: Install Rust stable toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
target: wasm32-unknown-unknown | |
- name: Install wasm-pack | |
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | |
- name: Run polar-language-server tests | |
working-directory: "polar-language-server" | |
run: make test | |
- name: Typecheck | |
working-directory: "vscode/oso" | |
run: make typecheck | |
- name: Lint JS library | |
working-directory: "vscode/oso" | |
run: make lint | |
e2e: | |
name: End-to-end Electron tests | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/cache@v2 | |
if: runner.os != 'macOS' | |
with: | |
path: | | |
~/.cargo/registry | |
~/.cargo/git | |
target | |
key: ${{ runner.os }}-cargo-check-${{ hashFiles('**/Cargo.lock') }} | |
- name: Install Rust stable toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
target: wasm32-unknown-unknown | |
- name: Use Node.js 12 | |
uses: actions/setup-node@v1 | |
with: | |
node-version: "12" | |
# TODO(gj): remove once https://github.com/rustwasm/wasm-pack/issues/1097 is resolved | |
- name: Install wasm-pack 0.10.1 | |
if: runner.os == 'Windows' | |
run: curl https://raw.githubusercontent.com/rustwasm/wasm-pack/1dc41bc09745b5c5f87fca9eddfb65b5b3586ddc/docs/_installer/init.sh -sSf | sed 's/$VERSION/v0.10.1/g' | sh | |
- name: Install wasm-pack | |
if: runner.os != 'Windows' | |
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | |
# https://github.com/microsoft/vscode-docs/blob/ad7206ed4184f5807871ecab8bd235a712208067/api/working-with-extensions/continuous-integration.md#github-actions | |
- run: xvfb-run -a make test | |
working-directory: "vscode/oso" | |
if: runner.os == 'Linux' | |
- run: make test | |
working-directory: "vscode/oso" | |
if: runner.os != 'Linux' |