-
-
Notifications
You must be signed in to change notification settings - Fork 158
34 lines (30 loc) · 769 Bytes
/
code-test.yaml
File metadata and controls
34 lines (30 loc) · 769 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
name: Code Test
on:
push:
branches:
- '*'
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache pnpm modules
id: cache-modules
uses: actions/cache@v4
with:
path: |
~/.pnpm-store
**/node_modules
key: ${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml', 'rollup.config.js') }}
restore-keys: |
${{ runner.os }}-
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
run_install: false
- name: Install Packages
if: steps.cache-modules.outputs.cache-hit != 'true'
run: pnpm install --no-frozen-lockfile
- name: Test
run: pnpm test