Skip to content

Commit

Permalink
Mocha tests will now also run on build
Browse files Browse the repository at this point in the history
  • Loading branch information
EvidentlyCube committed Nov 29, 2023
1 parent ddf3ea8 commit 9695c7b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ jobs:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Run Mocha Tests
run: npm run test
- name: Lint Playwright tests
run: npm run playwright:lint
- name: Install Playwright Browsers
run: npx playwright install --with-deps
run: npx playwright install chromium firefox --with-deps
- name: Run Playwright tests
run: npx playwright test
- uses: actions/upload-artifact@v3
Expand Down
18 changes: 16 additions & 2 deletions playwright.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,32 @@ export default defineConfig({

projects: [
{
name: 'sanity',
name: 'sanity-chrome',
fullyParallel: true,
testMatch: /SanityTests\.js/,
testMatch: /SanityTests\.js/,
use: {
...devices['Desktop Chrome'],
},
},
{
name: 'sanity-firefox',
fullyParallel: true,
testMatch: /SanityTests\.js/,
use: {
...devices['Desktop Firefox'],
},
},
{
name: 'chromium',
use: {
...devices['Desktop Chrome'],
},
},
{
name: 'firefox',
use: {
...devices['Desktop Firefox'],
},
}
],
});

0 comments on commit 9695c7b

Please sign in to comment.