diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..ad63161 --- /dev/null +++ b/.github/workflows/tests.yml @@ -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