diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 000000000..17b0bebbb --- /dev/null +++ b/.github/workflows/test.yml @@ -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 diff --git a/README.md b/README.md index 1b75a6fd5..0682c142c 100644 --- a/README.md +++ b/README.md @@ -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? @@ -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://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