Skip to content

Daily - Do npm install and run all unit tests #226

Daily - Do npm install and run all unit tests

Daily - Do npm install and run all unit tests #226

Workflow file for this run

name: Daily - Do npm install and run all unit tests
on:
schedule:
# run daily at midnight
- cron: '0 0 * * *'
jobs:
build:
if: github.repository_owner == 'adobe'
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [18.x]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm i --package-lock --package-lock-only
- run: npm ci
- name: run unit tests
run: npm run test
- name: Slack Notification
if: ${{ failure() }}
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_TITLE: 'Node version'
SLACK_MESSAGE: ${{ matrix.node-version }}
SLACK_COLOR: ${{ job.status == 'success' && 'good' || job.status == 'cancelled' && '#808080' || 'danger' }}