Skip to content

Commit

Permalink
Setup continuous integration
Browse files Browse the repository at this point in the history
  • Loading branch information
dpar39 authored and Darien Pardinas Diaz committed May 13, 2024
1 parent e858bcf commit a5a95ac
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: Release
on:
release:
types:
- published
pull_request:
types: [synchronize]
push:
branches:
- main
workflow_dispatch:

jobs:
Expand All @@ -14,10 +16,10 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14
node-version: 18
registry-url: https://registry.npmjs.org/

- name: Install the dependencies
- name: Install npm dependencies
run: npm install

- name: Build and run automation tests
Expand Down
6 changes: 6 additions & 0 deletions src/test/suite/extension.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,17 @@ import * as vscode from "vscode";
import { makeRequest } from "./sendPostRequest";
// import * as myExtension from '../extension';

async function sleep(ms: number): Promise<void> {
return new Promise(
(resolve) => setTimeout(resolve, ms));
}

suite("Extension Test Suite", () => {
suiteSetup(async () => {
const sampleWorkspace = path.resolve(__dirname, "../../../sampleWorkspace");
let uri = vscode.Uri.file(sampleWorkspace);
await vscode.commands.executeCommand("vscode.openFolder", uri);
await sleep(3000);
});

suiteTeardown(() => {});
Expand Down

0 comments on commit a5a95ac

Please sign in to comment.