Skip to content

Commit

Permalink
Merge pull request #476 from qawolf/monorepo
Browse files Browse the repository at this point in the history
Add create-code
  • Loading branch information
jperl committed Mar 5, 2020
2 parents d69b51d + 33dc444 commit cdc09b0
Show file tree
Hide file tree
Showing 71 changed files with 5,685 additions and 8 deletions.
26 changes: 25 additions & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,45 @@ jobs:
strategy:
matrix:
node-version: [12.x]
test: [lint, chromium, firefox, webkit]

steps:
- uses: actions/checkout@v2

- name: Install chromium dependencies
if: matrix.test == 'chromium'
run: sudo apt-get install libgbm1

- name: Install webkit dependencies
if: matrix.test == 'webkit'
run: |
sudo apt-get install libwoff1 libopus0 libwebp6 libwebpdemux2 libenchant1c2a libgudev-1.0-0 libsecret-1-0 libhyphen0 libgdk-pixbuf2.0-0 libegl1 libgles2 libevent-2.1-6 libnotify4 libvpx5 libxslt1.1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm install

- run: npm run lint
if: matrix.test == 'lint'

- run: npm run build

- run: npm test
- run: npx @qawolf/sandbox &
if: matrix.test != 'lint'

- run: QAW_BROWSER=${{ matrix.test }} npm test
if: matrix.test != 'lint'
env:
CI: true

timeout-minutes: 20
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ module.exports = {
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
testPathIgnorePatterns: ['./test/e2e'],
testRegex: '(/test/.*.(test|spec)).(jsx?|tsx?)$',
testTimeout: 30000,
};
Loading

0 comments on commit cdc09b0

Please sign in to comment.