Repository navigation
70 lines (56 loc) · 1.8 KB
/
Copy pathci.yml
File metadata and controls
70 lines (56 loc) · 1.8 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
name: CI
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
permissions:
contents: read
jobs:
test:
if: github.event.pull_request.draft != true
runs-on: ubuntu-latest
steps:
- name: Checkout
# actions/checkout@v6
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
- name: Setup Node
# actions/setup-node@v6
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1
with:
node-version: 26
- name: Setup pnpm
# pnpm/action-setup@v6.1.0
uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413
- name: Setup Go
# actions/setup-go@v6
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e
with:
go-version-file: packages/go/go.mod
cache-dependency-path: packages/go/go.sum
- name: Setup Python
# actions/setup-python@v6
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0
with:
python-version: "3.15"
- name: Setup Java
# actions/setup-java@v5
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad
with:
distribution: temurin
java-version: "25"
cache: maven
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Check
run: pnpm run check
- name: Test
run: pnpm test
- name: Package consumption
run: pnpm check:package
- name: npm pack dry-run
run: pnpm --filter @clidey/connparse pack --dry-run