forked from grafana/grafana
-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (35 loc) · 1.04 KB
/
ci.yml
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
31
32
33
34
35
36
37
38
39
40
41
42
---
name: CI
on:
push:
branches:
- master
pull_request:
jobs:
test:
name: Run Unit tests
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- name: Checkout code
uses: percona-platform/checkout@v2
- name: Run with Node ${{ matrix.node-version }}
uses: percona-platform/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Get Yarn cache directory
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- name: Use Yarn cache
uses: percona-platform/cache@v2
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}
- name: Clean Yarn cache
run: yarn cache clean
- name: Install dependencies
run: YARN_CHECKSUM_BEHAVIOR=update yarn install --immutable
- name: Run tests
run: yarn run ci:test-percona-frontend