-
Notifications
You must be signed in to change notification settings - Fork 5
30 lines (30 loc) · 776 Bytes
/
CI.yml
File metadata and controls
30 lines (30 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: CI pipeline
on:
workflow_dispatch:
workflow_call:
pull_request:
branches:
- 'dev'
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v4
- name: setup node
uses: actions/setup-node@v4
with:
node-version: '20.10'
- name: get node version
id: node
run: |
echo ":set-output name=node_version::$(node -v)"
- name: cache node_modules
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }}-${{ steps.node.outputs.node_version }}
- name: install dependencies
run: yarn
- name: unit tests
run: yarn run test