Files
Iris/.github/workflows/jest-tests.yml
2021-10-25 12:20:50 +13:00

27 lines
691 B
YAML

name: Jest tests
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '12'
- 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 ci
- name: Run tests
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
run: |
./cc-test-reporter before-build
npm run test
./cc-test-reporter after-build --exit-code $?