Skip to content

Commit

Permalink
test: run all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
javierbrea committed Jun 4, 2023
1 parent efc47bb commit c5a1b78
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 55 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
branches:
- master
- release
# - refactor/typescript-migration
- refactor/typescript-migration
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
Expand All @@ -49,13 +49,13 @@ jobs:
id: get-projects-arrays
run: |
if [[ "${{github.event.pull_request.base.ref}}" != "" ]]; then
echo "::set-output name=test-unit::$(./scripts/commands/affected-target-print-array.sh origin/${{github.event.pull_request.base.ref}} test:unit)"
echo "::set-output name=test-e2e::$(./scripts/commands/affected-target-print-array.sh origin/${{github.event.pull_request.base.ref}} test:e2e)"
echo "::set-output name=sonar::$(./scripts/commands/affected-target-print-array.sh origin/${{github.event.pull_request.base.ref}} sonar)"
echo "test-unit=$(./scripts/commands/affected-target-print-array.sh origin/${{github.event.pull_request.base.ref}} test:unit)" >> $GITHUB_OUTPUT
echo "test-e2e=$(./scripts/commands/affected-target-print-array.sh origin/${{github.event.pull_request.base.ref}} test:e2e)" >> $GITHUB_OUTPUT
echo "sonar=$(./scripts/commands/affected-target-print-array.sh origin/${{github.event.pull_request.base.ref}} sonar)" >> $GITHUB_OUTPUT
else
echo "::set-output name=test-unit::$(./scripts/commands/projects-target-print-array.sh test:unit)"
echo "::set-output name=test-e2e::$(./scripts/commands/projects-target-print-array.sh test:e2e)"
echo "::set-output name=sonar::$(./scripts/commands/projects-target-print-array.sh sonar)"
echo "test-unit=$(./scripts/commands/projects-target-print-array.sh test:unit)" >> $GITHUB_OUTPUT
echo "test-e2e=$(./scripts/commands/projects-target-print-array.sh test:e2e)" >> $GITHUB_OUTPUT
echo "sonar=$(./scripts/commands/projects-target-print-array.sh sonar)" >> $GITHUB_OUTPUT
fi
outputs:
test-unit: ${{ steps.get-projects-arrays.outputs.test-unit }}
Expand All @@ -78,7 +78,7 @@ jobs:
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
Expand Down Expand Up @@ -127,7 +127,7 @@ jobs:
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
Expand Down Expand Up @@ -232,7 +232,7 @@ jobs:
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
Expand Down Expand Up @@ -272,7 +272,7 @@ jobs:
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
Expand Down Expand Up @@ -308,7 +308,7 @@ jobs:
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
Expand Down
40 changes: 0 additions & 40 deletions .github/workflows/inquirer-cli.yml

This file was deleted.

4 changes: 2 additions & 2 deletions test/plugin-inquirer-cli-e2e/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ module.exports = {
// Automatically clear mock calls and instances between every test
clearMocks: true,

// testMatch: ["<rootDir>/src/**/*.spec.js"],
testMatch: ["<rootDir>/src/**/interactive-cli.spec.js"],
testMatch: ["<rootDir>/src/**/*.spec.js"],
// testMatch: ["<rootDir>/src/**/interactive-cli.spec.js"],

// Indicates whether the coverage information should be collected while executing the test
collectCoverage: false,
Expand Down

0 comments on commit c5a1b78

Please sign in to comment.