Skip to content

Commit

Permalink
Started work on tests for the repo
Browse files Browse the repository at this point in the history
  • Loading branch information
EpicnessTwo committed Nov 21, 2023
1 parent 8b55caa commit 6c23288
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: FizzBuzz Testing

on: [push, pull_request]

jobs:
test-nodejs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '14'

- name: Install dependencies
run: npm install

- name: Run Test
run: node fizzbuzz.js > /tmp/js.txt

- name: Compare output
run: diff /tmp/js.txt fizzbuzz.txt

0 comments on commit 6c23288

Please sign in to comment.