-
Notifications
You must be signed in to change notification settings - Fork 4
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
1 changed file
with
30 additions
and
46 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: ci | ||
name: test-e2e | ||
|
||
on: | ||
push: | ||
|
@@ -50,50 +50,34 @@ jobs: | |
run: cd drupal && ddev start | ||
|
||
- name: Install Drupal π¨π»βπ» | ||
run: cd drupal && ddev install | ||
run: cd drupal && ddev drupal-install | ||
|
||
- name: Install Nuxt.js π¨π»βπ» | ||
run: cd nuxt && yarn | ||
|
||
- name: Run linting π | ||
run: cd nuxt && yarn lint | ||
|
||
- name: Run Jest tests π§ͺ | ||
run: cd nuxt && yarn test:jest | ||
|
||
- name: Run Cypress tests π§ͺ | ||
run: cd nuxt && NODE_TLS_REJECT_UNAUTHORIZED=0 yarn test:cy | ||
|
||
- name: Deploy to Netlify | ||
uses: nwtgck/[email protected] | ||
with: | ||
publish-dir: './nuxt/dist' | ||
production-branch: main | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
deploy-message: "Deploy from GitHub Actions" | ||
enable-pull-request-comment: true | ||
enable-commit-comment: true | ||
overwrites-pull-request-comment: true | ||
github-deployment-environment: ${{ github.head_ref }} | ||
env: | ||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | ||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | ||
timeout-minutes: 1 | ||
|
||
- uses: actions/upload-artifact@v3 | ||
if: failure() | ||
with: | ||
name: cypress-screenshots | ||
path: nuxt/cypress/screenshots | ||
- uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: cypress-videos | ||
path: nuxt/cypress/videos | ||
|
||
- uses: codecov/codecov-action@v3 | ||
with: | ||
files: ./nuxt/coverage/clover.xml | ||
name: codecov-umbrella | ||
fail_ci_if_error: true | ||
verbose: true | ||
run: cd nuxt && npm install | ||
|
||
# - name: Run linting π | ||
# run: cd nuxt && npm run lint | ||
|
||
# - name: Run Jest tests π§ͺ | ||
# run: cd nuxt && npm run test:jest | ||
|
||
# - name: Run Cypress tests π§ͺ | ||
# run: cd nuxt && NODE_TLS_REJECT_UNAUTHORIZED=0 npm run test:cy | ||
|
||
# - uses: actions/upload-artifact@v3 | ||
# if: failure() | ||
# with: | ||
# name: cypress-screenshots | ||
# path: nuxt/cypress/screenshots | ||
# - uses: actions/upload-artifact@v3 | ||
# if: always() | ||
# with: | ||
# name: cypress-videos | ||
# path: nuxt/cypress/videos | ||
|
||
# - uses: codecov/codecov-action@v3 | ||
# with: | ||
# files: ./nuxt/coverage/clover.xml | ||
# name: codecov-umbrella | ||
# fail_ci_if_error: true | ||
# verbose: true |