Skip to content

Commit

Permalink
test: add tests for the ecc-utils-design-form component (#313)
Browse files Browse the repository at this point in the history
Co-authored-by: salihuDickson <salihudickson@gmail.com>
  • Loading branch information
SalihuDickson and SalihuDickson authored Sep 1, 2024
1 parent 992045d commit a056661
Show file tree
Hide file tree
Showing 17 changed files with 2,342 additions and 255 deletions.
10 changes: 8 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
"extends": ["@elixir-cloud"],
"settings": {},
"rules": {
"@typescript-eslint/no-var-requires": 0
}
"@typescript-eslint/no-var-requires": 0,
"import/no-extraneous-dependencies": 0
},
"overrides": [
{
"files": ["*.ts", "*.mjs", "*.js"]
}
]
}
25 changes: 23 additions & 2 deletions .github/workflows/pr_evaluation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,29 @@ jobs:
**/node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/package.lock') }}-${{ steps.node.outputs.version }}

- name: Cache Playwright
id: playwright-cache
uses: actions/cache@v3
with:
path: |
~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-playwright-
- name: Install dependencies
run: npm install

run: npm ci

- name: Install playwright
run: npx playwright install --with-deps
if: steps.playwright-cache.outputs.cache-hit != 'true'

- name: Install playwright dependencies
- run: npx playwright install-deps
if: steps.playwright-cache.outputs.cache-hit == 'true'

- name: Build
run: npm run build

- name: Run tests
run: npm run test
8 changes: 7 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,13 @@ jobs:
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/package.lock') }}-${{ steps.node.outputs.version }}

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

- name: Install playwright
run: npx playwright install --with-deps

- name: Build
run: npm run build

- name: Run tests
run: npm run test
Expand Down
Loading

0 comments on commit a056661

Please sign in to comment.