mirror of
https://github.com/fluencelabs/aqua-vscode
synced 2025-03-14 21:30:52 +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>
53 lines
1.3 KiB
YAML
53 lines
1.3 KiB
YAML
name: Run tests with workflow_call
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
ref:
|
|
description: 'git ref to checkout to'
|
|
type: string
|
|
default: 'main'
|
|
fcli-version:
|
|
description: 'fcli version to use'
|
|
type: string
|
|
default: 'main'
|
|
|
|
env:
|
|
FORCE_COLOR: true
|
|
|
|
jobs:
|
|
aqua-vscode:
|
|
name: 'Run integration 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: Setup fcli
|
|
uses: fluencelabs/setup-fluence@v1
|
|
with:
|
|
artifact: fcli
|
|
version: ${{ inputs.fcli-version }}
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Run before-tests
|
|
run: npm run before-tests
|
|
|
|
- name: Run tests
|
|
uses: coactions/setup-xvfb@v1
|
|
with:
|
|
run: npm run test
|