mirror of
https://github.com/aleleba/create-react-ssr.git
synced 2025-06-19 04:18:31 -06:00
PR-421183: Adding Cypress and updating packages.
This commit is contained in:
13
.github/workflows/npm-publish.yml
vendored
13
.github/workflows/npm-publish.yml
vendored
@ -14,7 +14,18 @@ jobs:
|
||||
registry-url: https://registry.npmjs.org/
|
||||
- run: npm ci
|
||||
- run: npm test
|
||||
|
||||
cypress-run:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
# Install NPM dependencies, cache them correctly
|
||||
# and run all Cypress tests
|
||||
- name: Cypress run
|
||||
uses: cypress-io/github-action@v5.x.x # use the explicit version number
|
||||
with:
|
||||
build: npm run build
|
||||
start: npm start
|
||||
publish-npm:
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
|
12
.github/workflows/npm-test.yml
vendored
12
.github/workflows/npm-test.yml
vendored
@ -20,6 +20,18 @@ jobs:
|
||||
registry-url: https://registry.npmjs.org/
|
||||
- run: npm ci
|
||||
- run: npm test
|
||||
cypress-run:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
# Install NPM dependencies, cache them correctly
|
||||
# and run all Cypress tests
|
||||
- name: Cypress run
|
||||
uses: cypress-io/github-action@v5.x.x # use the explicit version number
|
||||
with:
|
||||
build: npm run build
|
||||
start: npm start
|
||||
test-build-package:
|
||||
needs: test
|
||||
runs-on: ubuntu-latest
|
||||
|
Reference in New Issue
Block a user