mirror of
https://github.com/fluencelabs/aqua-vscode
synced 2025-04-24 16:12:14 +00:00
* Add imports tests * Add unit tests on document info * Add workflow * PR fixes * Update server/src/test/info.test.ts Co-authored-by: shamsartem <shamsartem@gmail.com> * PR fixes * Update target, PR fixes * Update .vscodeignore --------- Co-authored-by: shamsartem <shamsartem@gmail.com>
40 lines
916 B
YAML
40 lines
916 B
YAML
name: Run tests with workflow_call
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
ref:
|
|
description: 'git ref to checkout to'
|
|
type: string
|
|
default: 'main'
|
|
|
|
env:
|
|
FORCE_COLOR: true
|
|
|
|
jobs:
|
|
aqua-vscode:
|
|
name: 'Run unit tests'
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 60
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
repository: fluencelabs/aqua-vscode
|
|
ref: ${{ inputs.ref }}
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 18
|
|
cache: 'npm'
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Run tests
|
|
uses: coactions/setup-xvfb@v1
|
|
with:
|
|
run: npm run test:unit
|