Skip to content

Starter code #1939

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
23 changes: 23 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Automated Testing
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Load code
uses: actions/checkout@v2
- name: Prepare environment
uses: actions/setup-node@v2
with:
node-version: '16'
check-latest: true
- name: Install dependencies
run: npm i
- name: Run tests
run: npm run test -- --ci --reporters=default --reporters=jest-junit
- name: Reports the results of tests
uses: IgnusG/jest-report-action@v2.3.3
if: always()
with:
access-token: ${{ secrets.GITHUB_TOKEN }}
run-name: test
16 changes: 7 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ Ready?

## Introduction

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).
For this **pair-programming** activity we are going to have both people in the pair work in their own repos.
At the end of the exercise, both students should have identical code in their respective repos.

Ready to start?

Expand All @@ -19,19 +20,16 @@ Ready to start?

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

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

<!-- ![](https://i.imgur.com/4TQislb.png) -->
![](https://s3-eu-west-1.amazonaws.com/ih-materials/uploads/upload_17f095b9bb4fa4bd1bee1c017c043327.png)

- __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.__
- __After the first iteration, or later at any point, or once you finish, follow the steps for submission.__

## Submission

Expand Down