Skip to content

Commit f54d3f2

Browse files
authored
Merge pull request #1939 from Labs-IHWDFT/starter_code
Starter code
2 parents 453e5c2 + 4907777 commit f54d3f2

File tree

2 files changed

+30
-9
lines changed

2 files changed

+30
-9
lines changed

.github/workflows/test.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Automated Testing
2+
on: [push, pull_request]
3+
jobs:
4+
test:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: Load code
8+
uses: actions/checkout@v2
9+
- name: Prepare environment
10+
uses: actions/setup-node@v2
11+
with:
12+
node-version: '16'
13+
check-latest: true
14+
- name: Install dependencies
15+
run: npm i
16+
- name: Run tests
17+
run: npm run test -- --ci --reporters=default --reporters=jest-junit
18+
- name: Reports the results of tests
19+
uses: IgnusG/jest-report-action@v2.3.3
20+
if: always()
21+
with:
22+
access-token: ${{ secrets.GITHUB_TOKEN }}
23+
run-name: test

README.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ Ready?
1010

1111
## Introduction
1212

13-
For this **pair-programming** activity we are going to use a [REPL](https://en.wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93print_loop). You can find a REPL that runs in the browser for programming languages as JavaScript in [https://repl.it/languages/babel](https://repl.it/languages/babel).
13+
For this **pair-programming** activity we are going to have both people in the pair work in their own repos.
14+
At the end of the exercise, both students should have identical code in their respective repos.
1415

1516
Ready to start?
1617

@@ -19,19 +20,16 @@ Ready to start?
1920

2021
- Fork this repo
2122
- Clone this repo
22-
- Go to [repl.it](https://repl.it/languages/nodejs) and create an account (or login if you have one)
23-
- Type this in the *Code Editor* (left panel)
23+
- Type this in the *File Tab* (left panel)
2424

2525
```javascript
2626
console.log("I'm ready!");
2727
```
28-
- Press `run ►`
29-
- If you can see the message in the right side panel, you are really ready!
28+
- Save
29+
- Open a terminal and navigate to the directory where the script file is, then issue the following command `node js/index.js`
30+
- If you can see the message in the terminal panel (bottom), you are really ready!
3031

31-
<!-- ![](https://i.imgur.com/4TQislb.png) -->
32-
![](https://s3-eu-west-1.amazonaws.com/ih-materials/uploads/upload_17f095b9bb4fa4bd1bee1c017c043327.png)
33-
34-
- __When you are done completely or at any point after the first iteration, copy your code into the `js/index.js` file and follow the steps for submission.__
32+
- __After the first iteration, or later at any point, or once you finish, follow the steps for submission.__
3533

3634
## Submission
3735

0 commit comments

Comments
 (0)