Skip to content

huytran17 is running πŸš€ #960

huytran17 is running πŸš€

huytran17 is running πŸš€ #960

Workflow file for this run

name: Node.js CI
run-name: ${{ github.actor }} is running πŸš€
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./core/server
strategy:
matrix:
node-version: [18.x]
services:
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: 18.4.x
cache: yarn
cache-dependency-path: "./core/server/yarn.lock"
- name: Setup Redis
uses: supercharge/redis-github-action@1.2.0
with:
redis-version: 6
- name: Cache node-modules
id: cache-yarn
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: |
**/node_modules
${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn install --frozen-lockfile --silent
- name: Unit testing
run: yarn test:ci