Skip to content

Merge pull request #1982 from Jaro32768/Jaro32768-avash-roles-commands #384

Merge pull request #1982 from Jaro32768/Jaro32768-avash-roles-commands

Merge pull request #1982 from Jaro32768/Jaro32768-avash-roles-commands #384

Workflow file for this run

name: Node.js CI
on:
push:
branches: [master, next]
pull_request:
branches: [master, next]
jobs:
build:
name: Build and test
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
redis-version: [5]
services:
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Get Yarn cache directory
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Use Yarn cache
uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
run: yarn install --prefer-offline --frozen-lockfile
- name: Run Tests
run: yarn test
- name: Check Formatting
run: yarn prettier-check
- name: Check lint status
run: yarn lint