Skip to content

Bump semver from 5.7.1 to 5.7.2 #442

Bump semver from 5.7.1 to 5.7.2

Bump semver from 5.7.1 to 5.7.2 #442

name: MCDA-test | pull request | back-end tests
on:
pull_request:
branches: develop
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: ['18']
os: [ubuntu-22.04]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Cache node modules
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.OS }}-build-${{ hashFiles('package.json') }}
- name: run yarn
run: yarn
- name: run tests
run: yarn jest
- name: notify on slack channel on mocha failure
if: failure()
uses: rtCamp/action-slack-notify@master
env:
SLACK_WEBHOOK: ${{ secrets.slackWebhook }}
SLACK_USERNAME: gitbot
SLACK_TITLE: 'Develop pull request:'
SLACK_MESSAGE: 'Back-end tests failed'
- name: notify on slack channel on success
if: success()
uses: rtCamp/action-slack-notify@master
env:
SLACK_WEBHOOK: ${{ secrets.slackWebhook }}
SLACK_USERNAME: gitbot
SLACK_TITLE: 'Develop pull request:'
SLACK_MESSAGE: 'Back-end tests passed'