Skip to content

Commit a056661

Browse files
test: add tests for the ecc-utils-design-form component (#313)
Co-authored-by: salihuDickson <[email protected]>
1 parent 992045d commit a056661

File tree

17 files changed

+2342
-255
lines changed

17 files changed

+2342
-255
lines changed

.eslintrc

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
"extends": ["@elixir-cloud"],
44
"settings": {},
55
"rules": {
6-
"@typescript-eslint/no-var-requires": 0
7-
}
6+
"@typescript-eslint/no-var-requires": 0,
7+
"import/no-extraneous-dependencies": 0
8+
},
9+
"overrides": [
10+
{
11+
"files": ["*.ts", "*.mjs", "*.js"]
12+
}
13+
]
814
}

.github/workflows/pr_evaluation.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,29 @@ jobs:
121121
**/node_modules
122122
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/package.lock') }}-${{ steps.node.outputs.version }}
123123

124+
- name: Cache Playwright
125+
id: playwright-cache
126+
uses: actions/cache@v3
127+
with:
128+
path: |
129+
~/.cache/ms-playwright
130+
key: ${{ runner.os }}-playwright-${{ hashFiles('**/package-lock.json') }}
131+
restore-keys: |
132+
${{ runner.os }}-playwright-
133+
124134
- name: Install dependencies
125-
run: npm install
126-
135+
run: npm ci
136+
137+
- name: Install playwright
138+
run: npx playwright install --with-deps
139+
if: steps.playwright-cache.outputs.cache-hit != 'true'
140+
141+
- name: Install playwright dependencies
142+
- run: npx playwright install-deps
143+
if: steps.playwright-cache.outputs.cache-hit == 'true'
144+
145+
- name: Build
146+
run: npm run build
147+
127148
- name: Run tests
128149
run: npm run test

.github/workflows/publish.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,13 @@ jobs:
7373
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/package.lock') }}-${{ steps.node.outputs.version }}
7474

7575
- name: Install dependencies
76-
run: npm install
76+
run: npm ci
77+
78+
- name: Install playwright
79+
run: npx playwright install --with-deps
80+
81+
- name: Build
82+
run: npm run build
7783

7884
- name: Run tests
7985
run: npm run test

0 commit comments

Comments
 (0)