Skip to content

Commit

Permalink
test: custom e2e (#500)
Browse files Browse the repository at this point in the history
* test: custom e2e

* test: longer timeout for windows e2e
  • Loading branch information
mshanemc committed Sep 26, 2022
1 parent c815d48 commit 6e6d5bc
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,24 @@ on:
jobs:
unit-tests:
uses: oclif/github-workflows/.github/workflows/unitTest.yml@main
e2e:
strategy:
matrix:
os: ["ubuntu-latest", "windows-latest"]
node_version: [lts/-1, lts/*, latest]
exclude:
- os: windows-latest
node_version: lts/*
- os: windows-latest
node_version: lts/-1
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}
cache: yarn
- run: yarn install --network-timeout 600000
- run: yarn build
- run: yarn test:e2e
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
"posttest": "yarn lint",
"prepack": "yarn run build",
"test": "mocha --forbid-only \"test/**/*.test.ts\"",
"test:e2e": "mocha \"test/**/*.e2e.ts\" --timeout 600000",
"test:e2e": "mocha \"test/**/*.e2e.ts\" --timeout 1200000",
"pretest": "yarn build --noEmit && tsc -p test --noEmit --skipLibCheck"
},
"types": "lib/index.d.ts"
Expand Down

0 comments on commit 6e6d5bc

Please sign in to comment.