generated from yumemi-inc/typescript-action-template
-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (32 loc) · 798 Bytes
/
ci.yaml
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
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch: ~
jobs:
test:
name: Test
runs-on: ubuntu-22.04
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- run: corepack enable pnpm
- id: pnpm-cache
shell: bash
run: echo "path=$(pnpm store path)" >> "${GITHUB_OUTPUT}"
- uses: actions/cache@v4
with:
path: ${{ steps.pnpm-cache.outputs.path }}
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-pnpm-
- run: pnpm install --frozen-lockfile
- run: pnpm run check
- run: pnpm run build