-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 768 Bytes
/
Copy pathci.yml
File metadata and controls
35 lines (32 loc) · 768 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
name: CI
on:
push:
branches:
- main
- development
pull_request:
branches:
- main
- development
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
env:
NODE_VERSION: 'lts/*'
PNPM_VERSION: '10'
REGISTRY_URL: "https://npm.pkg.github.com"
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js and pnpm
# Use your existing composite action, passing inputs
uses: ./.github/actions/setup-pnpm-node
with:
node-version: ${{ env.NODE_VERSION }}
pnpm-version: ${{ env.PNPM_VERSION }}
registry-url: ${{ env.REGISTRY_URL }}
- name: Run tests
run: pnpm run test