-
Notifications
You must be signed in to change notification settings - Fork 1
87 lines (80 loc) · 2.35 KB
/
Copy pathci.yml
File metadata and controls
87 lines (80 loc) · 2.35 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: CI
on:
push:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
checks: write # needed for checks
id-token: write # needed for npm publish with provenance
contents: write # needed for github release
pull-requests: write # needed for coverage comment
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v6
with:
node-version: 24
registry-url: https://registry.npmjs.org/
cache: 'pnpm'
- name: Install
run: pnpm install
- name: Lint
run: pnpm lint:ci
test:
name: Test
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v6
with:
node-version: 24
registry-url: https://registry.npmjs.org/
cache: 'pnpm'
- name: Install
run: pnpm install
- name: Build
run: pnpm build
- name: Test
run: pnpm test
# TODO: PREVIEW
# Uncomment to create preview releases or delete this section
# preview:
# name: Preview
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v6
# - uses: pnpm/action-setup@v6
# - uses: actions/setup-node@v6
# with:
# node-version: 24
# registry-url: https://registry.npmjs.org/
# cache: 'pnpm'
# - name: Install
# run: pnpm install
# - name: Build
# run: pnpm build
# - name: Publish Preview
# run: npx pkg-pr-new publish --pnpm --packageManager=pnpm
# TODO: RELEASE
# Uncomment to enable Release Please (creates release PRs and GitHub Releases on merge to main)
# See README "Release with Release Please" for setup instructions
# release:
# name: Release
# runs-on: ubuntu-latest
# needs: [lint, test]
# if: github.ref == 'refs/heads/main'
# steps:
# # https://github.com/googleapis/release-please-action
# - name: Release Please
# uses: googleapis/release-please-action@v5
# with:
# # https://github.com/googleapis/release-please-action?tab=readme-ov-file#github-credentials
# token: ${{ secrets.RELEASE_PLEASE_TOKEN }}