Skip to content

Commit

Permalink
updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Duda committed Apr 11, 2024
1 parent 17fdef4 commit d798111
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/run-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: '12.16.1'
- name: Install npm dependencies
- name: Install npm dependencies
run: npm ci
- name: Create scope-tags build
run: npx tsc
# Just to not display git warning in unit test output
- name: Configure git
run: git config --global init.defaultBranch main
- name: Make temporary folder for tests
run: mkdir ./TEST_TMP && ls -ltra .
- name: Run Jest unit tests
Expand Down
4 changes: 2 additions & 2 deletions test/git/fileSystemUtils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ import rimraf from "rimraf";
import { TEMP_TEST_FOLDER } from "../_utils/globals";
import { assertTemporaryFolderExists } from "../_utils/utils";

const SCOPE_FOLDER_PATH = join(TEMP_TEST_FOLDER, ".scope");
const SCOPE_FOLDER_PATH = resolve(join(TEMP_TEST_FOLDER, ".scope"));

beforeEach(() => {
assertTemporaryFolderExists();
});

afterAll(() => {
rimraf.sync(resolve(SCOPE_FOLDER_PATH));
rimraf.sync(SCOPE_FOLDER_PATH);
});

const purgeScopeFolder = () => {
Expand Down

0 comments on commit d798111

Please sign in to comment.