-
Notifications
You must be signed in to change notification settings - Fork 354
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
61 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,24 +48,74 @@ jobs: | |
uses: ./.github/actions/build | ||
with: | ||
node: ${{ env.NODE_VERSION }} | ||
tests: 'true' | ||
browserstack-access-key: ${{ secrets.BROWSERSTACK_ACCESSKEY }} | ||
browserstack-username: ${{ secrets.BROWSERSTACK_USERNAME }} | ||
|
||
- name: Save build artifacts | ||
uses: actions/cache/save@v3 | ||
with: | ||
path: | | ||
dist | ||
path: . | ||
key: ${{ env.CACHE_KEY }} | ||
|
||
- name: Upload coverage | ||
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # [email protected] | ||
|
||
unit: | ||
needs: test | ||
|
||
name: Unit Tests | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
cache: 'npm' | ||
|
||
- name: Restore build artifacts | ||
uses: actions/cache/restore@v3 | ||
with: | ||
path: . | ||
key: ${{ env.CACHE_KEY }} | ||
|
||
- name: Run tests | ||
run: npm run test -- --maxWorkers=2 | ||
|
||
browserstack: | ||
needs: test | ||
|
||
name: BrowserStack Tests | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
cache: 'npm' | ||
|
||
- name: Restore build artifacts | ||
uses: actions/cache/restore@v3 | ||
with: | ||
path: . | ||
key: ${{ env.CACHE_KEY }} | ||
|
||
- name: Run tests | ||
shell: bash | ||
run: npx concurrently --raw --kill-others --success first "npm:dev" "wait-on http://127.0.0.1:3000/ && browserstack-cypress run --build-name ${{ github.ref }}" | ||
env: | ||
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }} | ||
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }} | ||
|
||
gatsby: | ||
needs: test | ||
|
||
name: Gatsby | ||
name: Gatsby Tests | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
@@ -89,7 +139,7 @@ jobs: | |
react: | ||
needs: test | ||
|
||
name: React | ||
name: React Tests | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
@@ -113,7 +163,7 @@ jobs: | |
vue: | ||
needs: test | ||
|
||
name: Vue | ||
name: Vue Tests | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
@@ -137,7 +187,7 @@ jobs: | |
angular: | ||
needs: test | ||
|
||
name: Angular | ||
name: Angular Tests | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|