Skip to content
This repository was archived by the owner on Oct 25, 2023. It is now read-only.
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
216 commits
Select commit Hold shift + click to select a range
e104476
Update link to syllabus
dinassh Jul 17, 2020
c4969dc
Update dependencies
dinassh Jul 17, 2020
dbe9ac9
GH-36 Add prettier
dinassh Jul 20, 2020
f9a553b
GH-36 Install typescript modules
dinassh Jul 20, 2020
7395341
GH-36 Add target browser defaults to package.json
dinassh Jul 20, 2020
901fa46
GH-36 Rewrite exercise 0 to typescript
dinassh Jul 20, 2020
887db7b
GH-36 Apply 'prettier' formatting
dinassh Jul 20, 2020
d8db8c1
GH-36 Remove 'yarn' reference from README
dinassh Jul 20, 2020
b30f567
Downgrade several packages to non-conflicting versions
dinassh Jul 22, 2020
32c7621
Remove babel-polyfill import
dinassh Jul 22, 2020
2c270e5
Add package-lock.json to the repository
dinassh Jul 22, 2020
2a38d08
Apply prettier to tsconfig.json
dinassh Jul 22, 2020
dd4cf81
Install cypress.
dinassh Jul 20, 2020
b754ed4
Add tests for exercise 0 and 1
dinassh Jul 20, 2020
9561c46
Move e2e tests to exercise 01 directory
dinassh Jul 21, 2020
ee82445
Add cypress related scripts to package.json
dinassh Jul 21, 2020
decfa94
Move cypress e2e tests to exercise 0 directory
dinassh Jul 21, 2020
adb6339
Add videos to gitignore
dinassh Jul 21, 2020
7c8df34
Remove cypress open script from package.json
dinassh Jul 21, 2020
6ad5810
Setup the github workflow for e2e tests
dinassh Jul 21, 2020
4adec66
Change working directory for dependencies install
dinassh Jul 21, 2020
2d09f96
Use package.json for dependency installation
dinassh Jul 21, 2020
7f3ee43
Remove dependency installation from cypress step
dinassh Jul 21, 2020
abab2c5
Bump cypress action version
dinassh Jul 21, 2020
0cf1c7d
Update main.yml
dinassh Jul 21, 2020
b562eda
Add exercise 1 e2e tests to workflow
dinassh Jul 21, 2020
93ecd30
Move exercise 1 to separate job
dinassh Jul 21, 2020
e2eb514
Add script generating the github workflow for e2e tests
dinassh Jul 22, 2020
5acaa1b
Modify createE2ETestWorkflow.ts to rewrite the workflow file
dinassh Jul 22, 2020
3b3f6f0
Update workflow file (generated version)
dinassh Jul 22, 2020
9036e04
Update scripts README
dinassh Jul 22, 2020
c7a1003
Remove exercise 1 testing from the workflow
dinassh Jul 22, 2020
d199907
Make test for exercise 1 case insensitive
dinassh Jul 23, 2020
ec11c24
Add cypress to package-lock
dinassh Jul 23, 2020
79566b5
Format tsconfig
dinassh Jul 23, 2020
e2617a0
Move constants file to support directory
dinassh Jul 23, 2020
72fa40e
Merge pull request #37 from salsita/rewrite-exercise-0
dinassh Jul 24, 2020
ff95851
Fix formatting
dinassh Jul 27, 2020
a2853ed
Rename constants: from uppercase to lowercase
dinassh Jul 27, 2020
5f6c566
Rename github workflow generating script
dinassh Jul 27, 2020
1998251
Add help displaying to generateE2ETestGithubWorkflow.ts script
dinassh Jul 27, 2020
546c37f
Add path resolving
dinassh Jul 27, 2020
efff410
Rewrite reduce function to map, fix function name
dinassh Jul 27, 2020
9b6e012
Disable cypress plugins, support and fixtures
dinassh Jul 27, 2020
a14f4a8
Rename constant: from uppercase to lowercase
dinassh Jul 27, 2020
15ca473
Add 'screenshots' directories to gitignore
dinassh Jul 27, 2020
c71f3ed
Rewrite exercise 01
dinassh Jul 23, 2020
5ef1774
Add package-lock.json to exercise 01
dinassh Jul 23, 2020
45b5480
Activate e2e tests for exercise 1 on CI
dinassh Jul 23, 2020
bc8f360
Use React.Fragment instead of <div> element
dinassh Jul 23, 2020
2359420
Update tutorial for exercise 1
dinassh Jul 23, 2020
a1a288d
Fix type annotations for React components
dinassh Jul 24, 2020
d7a8831
Fix Root component type annotation in exercise 0
dinassh Jul 24, 2020
d0f3660
Disable cypress plugins, support and fixtures
dinassh Jul 27, 2020
e5c9a51
Rename constant: uppercase to lowercase
dinassh Jul 27, 2020
d9413da
Rename react-hooks to React Hooks
dinassh Jul 27, 2020
018ae30
Fix link in README.md
dinassh Jul 27, 2020
3a4ff4b
Merge pull request #43 from salsita/setup-github-actions
dinassh Jul 28, 2020
a9dd3da
Fix typos
dinassh Jul 28, 2020
ff1ae46
Add more explicit interface definition to tutorial
dinassh Jul 28, 2020
0826265
Rename UsersList to UserList, UsersTypes to UserTypes in exercise 1
dinassh Jul 28, 2020
10af64c
Move typescript configuration to base file and extend it in exercises
dinassh Jul 28, 2020
2a17865
Use function parameter to setUsers to get previous state
dinassh Jul 28, 2020
73d2ddc
Use different style of array type
dinassh Jul 28, 2020
43d1cca
Use package-lock for dependency installation in CI
dinassh Jul 28, 2020
7de8068
Add UserData interface
dinassh Jul 29, 2020
8141d9c
Add a description of user-types.ts to exercise 1 tutorial
dinassh Jul 29, 2020
6e7ea69
Add tearget browsers to package.json
dinassh Jul 24, 2020
8aa7cec
Add package-lock to exercise 2 directory
dinassh Jul 24, 2020
cab058f
Rename js files to tsx file extension
dinassh Jul 24, 2020
4097540
Add typescript configuration file
dinassh Jul 24, 2020
e505e55
Rewrite exercise 2 to typescript
dinassh Jul 24, 2020
91460d2
Remove unused import
dinassh Jul 27, 2020
8d19273
Remove re-export of users-types from users-list
dinassh Jul 27, 2020
2dd13d2
Fix User interface definition
dinassh Jul 27, 2020
8a88541
Change title to 'User Management' same as in exercise 1
dinassh Jul 27, 2020
fb414f0
Add smoke tests
dinassh Jul 27, 2020
b537cff
Setup CI tests for exercise 2
dinassh Jul 27, 2020
14b79c3
Update exercise 2 tutorial
dinassh Jul 27, 2020
12c6190
Add solutions for additonal exercises
dinassh Jul 29, 2020
d548bc1
Rename instances of Users... to User... in exercise 2
dinassh Jul 29, 2020
166a327
Replace instances of Array<Type> with Type[]
dinassh Jul 29, 2020
f9aed0a
Use 'extends' syntax in tsconfig
dinassh Jul 29, 2020
e2adfb1
Use package-lock for dependency installation in CI
dinassh Jul 29, 2020
ade21cb
Add user types to exercise 2 tutorial
dinassh Jul 29, 2020
7753dd1
Rename users-list to user-list in exercise 2 tutorial
dinassh Jul 29, 2020
0d12109
Update links in exercise 2 tutorial
dinassh Jul 29, 2020
fc66d56
Merge pull request #44 from salsita/rewrite-exercise-1
dinassh Jul 29, 2020
b7ace05
Apply suggestions from code review
dinassh Jul 31, 2020
9734160
Rename AddUserFunc to AddUser
dinassh Jul 31, 2020
cd8d43f
Add smoke tests for exercise 3
dinassh Jul 27, 2020
6aecc33
Setup tests for exercise 3 in github workflow
dinassh Jul 27, 2020
bed51aa
Bump redux version
dinassh Jul 29, 2020
fd10b69
Rewrite exercise 3 to TypeScript, draft
dinassh Jul 29, 2020
f2bb263
Add type checking to user actions, action creators, reducer
dinassh Jul 30, 2020
4dd0b05
Rename 'users' to 'user' in some instances
dinassh Jul 30, 2020
3b53873
Change array syntax from Array<Type> to Type[]
dinassh Jul 30, 2020
e2a2bf1
Use 'extends' syntax in tsconfig
dinassh Jul 30, 2020
4093ab8
Use package lock for dependecy installation in CI
dinassh Jul 30, 2020
87c331f
Rewrite user action exports in more structured way
dinassh Jul 30, 2020
ad282f3
Lowercase the constant
dinassh Jul 30, 2020
ac7c9cc
Update tutorial for exercise 3
dinassh Jul 30, 2020
34964f9
Lowercase userReducer
dinassh Jul 30, 2020
842c941
Fix few sentences
dinassh Jul 30, 2020
5add7af
Add type to Action interface to allow strong typing
dinassh Jul 31, 2020
6def571
Minor style changes
dinassh Jul 31, 2020
c40b383
Add type information to exercise 3 tutorial
dinassh Jul 31, 2020
d716b29
Rename AddUserFunc to AddUser
dinassh Jul 31, 2020
1705586
Merge pull request #47 from salsita/rewrite-exercise-2
dinassh Aug 3, 2020
dd8d0a6
Use Action type instead of AnyAction (from 'redux')
dinassh Aug 4, 2020
0b2be09
Minor style fix
dinassh Aug 4, 2020
7c21fcc
Replace AnyAction with Action in exercise 3 tutorial
dinassh Aug 4, 2020
3134dd1
Sort imports (third party first), remove unnecessary comment
dinassh Aug 6, 2020
d9a09c9
Add E2E tests for exercise 4
dinassh Jul 31, 2020
50e8315
Configure CI for exercise 4
dinassh Jul 31, 2020
8965596
Add package-lock file
dinassh Jul 31, 2020
746f587
Install Redux Toolkit
dinassh Jul 31, 2020
c72dacd
Use Redux Toolkit instead of reduxsauce in exercise 4
dinassh Jul 14, 2020
ecfadc3
Rewrite tutorial for exercise 4 with Redux Toolkit
dinassh Jul 31, 2020
e265253
Rewrite to TypeScript
dinassh Jul 31, 2020
c0f2e9c
Add typing to users-slice and connected components
dinassh Aug 3, 2020
e041bab
Bump react-redux version
dinassh Aug 3, 2020
ac93daa
Rewrite exercise 4 with hooks.
dinassh Aug 3, 2020
405d799
Update exercise 4 tutorial
dinassh Aug 4, 2020
8fa389a
Rename file
dinassh Aug 4, 2020
8a97604
Use React.FC instead of FC for typing
dinassh Aug 4, 2020
0ee4a3c
Reorganize imports - third party first
dinassh Aug 6, 2020
d0b10b7
Add E2E tests for exercise 5
dinassh Aug 4, 2020
86657b7
Add exercise 5 github workflow
dinassh Aug 4, 2020
77f910d
Rewrite to TypeScript
dinassh Aug 4, 2020
d1f90d2
Add a check for the last name being in uppercase
dinassh Aug 4, 2020
6a2e2b9
Rename getUsersList selector to getUserList
dinassh Aug 4, 2020
6562643
Update tutorial for exercise 5
dinassh Aug 4, 2020
3832dd3
Reorganize imports - third party libraries first
dinassh Aug 6, 2020
d60d0c2
Merge pull request #49 from salsita/rewrite-exercise-3
dinassh Aug 7, 2020
3d07037
Merge pull request #51 from salsita/rewrite-exercise-4
dinassh Aug 7, 2020
3cd4424
Replace unnecessary <div> blocks with React Fragments
dinassh Aug 11, 2020
ff52f60
Move callback passed to map() into a separate function
dinassh Aug 12, 2020
14bf4f1
Reorganize dispatching of actions on button click
dinassh Aug 12, 2020
5cececc
Memoize callbacks passed to buttons with useCallback hook
dinassh Aug 13, 2020
06d6bec
Rewrite UserList with memoized version of buttons
dinassh Aug 14, 2020
1dbafcf
Fix typo in function name
dinassh Aug 14, 2020
c6d1b7d
Downgrade the bahmutov/npm-install github action
dinassh Aug 12, 2020
ddb02e2
Fix typing of React.memo component
dinassh Aug 17, 2020
c665999
Fix typo
dinassh Aug 17, 2020
f234d11
Add E2E tests for exercise 6
dinassh Aug 4, 2020
991b541
Setup github workflow for exercise 6
dinassh Aug 4, 2020
82d27c3
Rewrite FE with TypeScript
dinassh Aug 5, 2020
aee719f
Fix formatting
dinassh Aug 5, 2020
5bd5b1f
Install types for node and express
dinassh Aug 6, 2020
2b1c60f
Rewrite BE with TypeScript, change BE file location
dinassh Aug 6, 2020
338fe2f
Rename backend directory
dinassh Aug 6, 2020
7242b72
Reorganize imports: third party libraries first
dinassh Aug 6, 2020
62e1e90
Move error condition to the beginning of the addUser saga
dinassh Aug 6, 2020
53978cd
Update the tutorial for exercise 6
dinassh Aug 7, 2020
c257e8e
Remove unused AddUser interface
dinassh Aug 7, 2020
478fa84
Replace <div> with React.Fragments
dinassh Aug 12, 2020
2d6411c
Move callback passed to map() into a separate function
dinassh Aug 12, 2020
088cb82
Bump the redux-saga version
dinassh Aug 17, 2020
964898f
Fix sagas typing
dinassh Aug 17, 2020
4dc5438
Fix typo
dinassh Aug 17, 2020
f5fddbc
Add a note on literal type for action type to tutorial
dinassh Aug 17, 2020
53f3506
Add types to variables before yield
dinassh Aug 17, 2020
40ef57b
Downgrade bahmutov/npm-install version
dinassh Aug 17, 2020
ca184ef
Add memoized button to UserList - same as in exercise 5
dinassh Aug 17, 2020
74af047
Add typings for Axios response payload
dinassh Aug 17, 2020
5f8ff12
Merge pull request #53 from salsita/rewrite-exercise-5
dinassh Aug 17, 2020
22de998
Check whether the catched error has message before logging it
dinassh Aug 17, 2020
ca08890
Merge pull request #55 from salsita/rewrite-exercise-6
dinassh Aug 18, 2020
244fead
Add E2E tests for exercise 7
dinassh Aug 10, 2020
070ba0e
Setup github workflow for exercise 7 tests
dinassh Aug 10, 2020
7012aa6
Add package-lock file (for CI)
dinassh Aug 10, 2020
53d4015
Rewrite backend with TypeScript
dinassh Aug 10, 2020
436cb80
Update test with new location of server source file
dinassh Aug 11, 2020
58fd844
Rewrite frontend with TypeScript, remove react-modules
dinassh Aug 11, 2020
160f19d
Replace <div> with React.Fragment
dinassh Aug 12, 2020
7b8d9e2
Reorganize dispatching of actions on button click
dinassh Aug 12, 2020
be85afe
Replace string[] payload of usersLoaded action with normalized data
dinassh Aug 12, 2020
305883f
Rename a variable
dinassh Aug 12, 2020
1898b49
Downgrade bahmutov/npm-install version
dinassh Aug 17, 2020
30f5622
Move entities types to a separate file
dinassh Aug 17, 2020
3a71a01
Remove server restart before each test
dinassh Aug 17, 2020
55478ce
Apply review comment changes from exercises 5 and 6
dinassh Aug 17, 2020
247fe2b
Convert regnal number to roman numeral
dinassh Aug 17, 2020
ea8ee67
Rewrite entities reducer to merge state instead of replacing
dinassh Aug 18, 2020
5c0e6b2
Add a function for error logging
dinassh Aug 18, 2020
08bb40a
Update the tutorial for exercise 7
dinassh Aug 18, 2020
dabfaa0
Fix a typo, add an instruction to export the reducer
dinassh Aug 18, 2020
c7b960b
Refactor the server logic
dinassh Aug 18, 2020
42882e8
Fix typo
dinassh Aug 19, 2020
41e9665
Rename UserData interface to UserName
dinassh Aug 19, 2020
8be4677
Add input validation to 'post' request
dinassh Aug 19, 2020
e656a05
Rewrite updateEntities with more abstract types
dinassh Aug 19, 2020
874d670
Rewrite entities selectors with mapValues from lodash
dinassh Aug 19, 2020
b1f80de
Add a hint to use mapValues to exercise 7 tutorial
dinassh Aug 19, 2020
0631b53
Fix typo
dinassh Aug 19, 2020
cde8c5d
Fix typo
dinassh Aug 20, 2020
c88a30a
Move expressions which can't throw outside try/catch blocks
dinassh Aug 20, 2020
665b301
Move user adding logic outside 'post' request handler
dinassh Aug 20, 2020
264464f
Separate creation and adding of user
dinassh Aug 20, 2020
5852bb4
Rename usersSkill to userSkill
dinassh Aug 20, 2020
539f0b9
Define EntitiesState as type
dinassh Aug 20, 2020
88dea78
Move normalization and entities storing to entities saga
dinassh Aug 23, 2020
f557029
Rename variable, delete duplicate line of code
dinassh Aug 24, 2020
8f435ac
Remove generic arguments from normalizeAndStore
dinassh Aug 26, 2020
b8b0f2f
Update package.json with latest package versions
dinassh Aug 21, 2020
3f44328
Add browserslist to package.json
dinassh Aug 21, 2020
a2ce4b6
Remove .env files (replaced with tsconfig)
dinassh Aug 21, 2020
3638330
Move @types to dev dependencies
dinassh Aug 21, 2020
79bd666
Install redux-router5
dinassh Aug 21, 2020
f80c0b7
Add old dependencies to exercises 8 and 9 package.json directly
dinassh Aug 21, 2020
e587bfa
Add a warning to install dependencies for exercise 8 and 9 separately
dinassh Aug 21, 2020
62750fb
Remove normalizr schema typings
dinassh Aug 26, 2020
27e95b7
Merge pull request #59 from salsita/rewrite-exercise-7
dinassh Aug 27, 2020
7073a20
Remove unused dependencies
dinassh Aug 27, 2020
43fa2d5
Merge pull request #63 from salsita/update_packages
dinassh Aug 27, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
255 changes: 255 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,255 @@
name: End-to-end tests

# Controls when the action will run. Triggers the workflow on push
on: [push]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:

# Exercise 00-init
e2e-00-init:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install root dependencies
uses: bahmutov/npm-install@v1.4.1
with:
working-directory: exercises
- name: Cypress run exercise 00-init
uses: cypress-io/github-action@v2
with:
working-directory: exercises/00-init
# start the server
start: npm start
# wait for server to start
wait-on: 'http://localhost:3000'
# wait for 2 minutes for the server to respond:
wait-on-timeout: 120
- uses: actions/upload-artifact@v1
if: failure()
with:
name: 00-init-cypress-screenshots
path: exercises/00-init/cypress/screenshots
- uses: actions/upload-artifact@v1
if: always()
with:
name: 00-init-cypress-videos
path: exercises/00-init/cypress/videos

# Exercise 01-react-stateful
e2e-01-react-stateful:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install root dependencies
uses: bahmutov/npm-install@v1.4.1
with:
working-directory: exercises
- name: Cypress run exercise 01-react-stateful
uses: cypress-io/github-action@v2
with:
working-directory: exercises/01-react-stateful
# start the server
start: npm start
# wait for server to start
wait-on: 'http://localhost:3000'
# wait for 2 minutes for the server to respond:
wait-on-timeout: 120
- uses: actions/upload-artifact@v1
if: failure()
with:
name: 01-react-stateful-cypress-screenshots
path: exercises/01-react-stateful/cypress/screenshots
- uses: actions/upload-artifact@v1
if: always()
with:
name: 01-react-stateful-cypress-videos
path: exercises/01-react-stateful/cypress/videos

# Exercise 02-react-stateless
e2e-02-react-stateless:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install root dependencies
uses: bahmutov/npm-install@v1.4.1
with:
working-directory: exercises
- name: Cypress run exercise 02-react-stateless
uses: cypress-io/github-action@v2
with:
working-directory: exercises/02-react-stateless
# start the server
start: npm start
# wait for server to start
wait-on: 'http://localhost:3000'
# wait for 2 minutes for the server to respond:
wait-on-timeout: 120
- uses: actions/upload-artifact@v1
if: failure()
with:
name: 02-react-stateless-cypress-screenshots
path: exercises/02-react-stateless/cypress/screenshots
- uses: actions/upload-artifact@v1
if: always()
with:
name: 02-react-stateless-cypress-videos
path: exercises/02-react-stateless/cypress/videos

# Exercise 03-redux
e2e-03-redux:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install root dependencies
uses: bahmutov/npm-install@v1.4.1
with:
working-directory: exercises
- name: Cypress run exercise 03-redux
uses: cypress-io/github-action@v2
with:
working-directory: exercises/03-redux
# start the server
start: npm start
# wait for server to start
wait-on: 'http://localhost:3000'
# wait for 2 minutes for the server to respond:
wait-on-timeout: 120
- uses: actions/upload-artifact@v1
if: failure()
with:
name: 03-redux-cypress-screenshots
path: exercises/03-redux/cypress/screenshots
- uses: actions/upload-artifact@v1
if: always()
with:
name: 03-redux-cypress-videos
path: exercises/03-redux/cypress/videos

# Exercise 04-react-redux
e2e-04-react-redux:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install root dependencies
uses: bahmutov/npm-install@v1.4.1
with:
working-directory: exercises
- name: Cypress run exercise 04-react-redux
uses: cypress-io/github-action@v2
with:
working-directory: exercises/04-react-redux
# start the server
start: npm start
# wait for server to start
wait-on: 'http://localhost:3000'
# wait for 2 minutes for the server to respond:
wait-on-timeout: 120
- uses: actions/upload-artifact@v1
if: failure()
with:
name: 04-react-redux-cypress-screenshots
path: exercises/04-react-redux/cypress/screenshots
- uses: actions/upload-artifact@v1
if: always()
with:
name: 04-react-redux-cypress-videos
path: exercises/04-react-redux/cypress/videos

# Exercise 05-reselect
e2e-05-reselect:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install root dependencies
uses: bahmutov/npm-install@v1.4.1
with:
working-directory: exercises
- name: Cypress run exercise 05-reselect
uses: cypress-io/github-action@v2
with:
working-directory: exercises/05-reselect
# start the server
start: npm start
# wait for server to start
wait-on: 'http://localhost:3000'
# wait for 2 minutes for the server to respond:
wait-on-timeout: 120
- uses: actions/upload-artifact@v1
if: failure()
with:
name: 05-reselect-cypress-screenshots
path: exercises/05-reselect/cypress/screenshots
- uses: actions/upload-artifact@v1
if: always()
with:
name: 05-reselect-cypress-videos
path: exercises/05-reselect/cypress/videos

# Exercise 06-redux-saga
e2e-06-redux-saga:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install root dependencies
uses: bahmutov/npm-install@v1.4.1
with:
working-directory: exercises
- name: Cypress run exercise 06-redux-saga
uses: cypress-io/github-action@v2
with:
working-directory: exercises/06-redux-saga
# start the server
start: npm start
# wait for server to start
wait-on: 'http://localhost:3000'
# wait for 2 minutes for the server to respond:
wait-on-timeout: 120
- uses: actions/upload-artifact@v1
if: failure()
with:
name: 06-redux-saga-cypress-screenshots
path: exercises/06-redux-saga/cypress/screenshots
- uses: actions/upload-artifact@v1
if: always()
with:
name: 06-redux-saga-cypress-videos
path: exercises/06-redux-saga/cypress/videos

# Exercise 07-normalizr
e2e-07-normalizr:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install root dependencies
uses: bahmutov/npm-install@v1.4.1
with:
working-directory: exercises
- name: Cypress run exercise 07-normalizr
uses: cypress-io/github-action@v2
with:
working-directory: exercises/07-normalizr
# start the server
start: npm start
# wait for server to start
wait-on: 'http://localhost:3000'
# wait for 2 minutes for the server to respond:
wait-on-timeout: 120
- uses: actions/upload-artifact@v1
if: failure()
with:
name: 07-normalizr-cypress-screenshots
path: exercises/07-normalizr/cypress/screenshots
- uses: actions/upload-artifact@v1
if: always()
with:
name: 07-normalizr-cypress-videos
path: exercises/07-normalizr/cypress/videos
Loading