-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (32 loc) · 988 Bytes
/
test-unit.yml
File metadata and controls
40 lines (32 loc) · 988 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
31
32
33
34
35
36
37
38
39
40
name: Test Unit
on:
pull_request:
types: [opened, reopened, edited, synchronize]
jobs:
test-unit:
name: Test Unit
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v3
- name: List LFS Objects
shell: bash
run: git lfs ls-files -l | cut -d ' ' -f1 | sort > .lfs-assets-id
- name: Restore LFS Cache
uses: actions/cache@v2
id: lfs-cache
with:
path: .git/lfs
key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}-v1
- name: Git LFS Pull
shell: bash
run: git lfs pull
- name: Initialize Yarn
shell: bash
run: yarn
- name: Test Unit
shell: bash
id: tests
run: yarn run test:unit-ci