Files
Iris/.github/workflows/jest-tests.yml
James Barnsley 5e1ab5b746 Use NodeJS
2021-10-24 12:58:05 +13:00

26 lines
647 B
YAML

name: Jest tests
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Install Code Climate test-reporter
run: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
- name: Install modules
run: npm install
- name: Run tests
run: |
./cc-test-reporter before-build
npm run test
./cc-test-reporter after-build --exit-code $?