This repository has been archived by the owner on Feb 27, 2024. It is now read-only.
forked from Shopify/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (73 loc) · 2.25 KB
/
checks.yml
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
name: Checks
on:
pull_request:
paths-ignore:
- '**.md'
env:
DEBUG: '1'
SHOPIFY_CLI_ENV: development
SHOPIFY_CONFIG: debug
PNPM_VERSION: '8.6.1'
RUBY_VERSION: '3.1.2'
BUNDLER_VERSION: '2.3.18'
jobs:
benchmark:
name: benchmark with Node ${{ matrix.node }} in ${{ matrix.os }}
runs-on: ${{ matrix.os }}
if: github.event.pull_request.head.repo.full_name == github.repository
timeout-minutes: 30
strategy:
matrix:
os: ['ubuntu-latest']
node: ['18.7.0']
steps:
- uses: actions/checkout@v3
name: Checkout [main]
with:
fetch-depth: 0
- name: Setup deps
uses: ./.github/actions/setup-cli-deps
with:
node-version: ${{ matrix.node }}
- name: Build
run: pnpm nx run-many --all --skip-nx-cache --target=build --exclude=features
- name: Benchmark
working-directory: workspace
id: benchmark
run: pnpm nx run benchmark
- uses: marocchino/sticky-pull-request-comment@fcf6fe9e4a0409cd9316a5011435be0f3327f1e1 # [email protected]
if: steps.benchmark.outputs.report != ''
with:
header: Benchmark
message: ${{ steps.benchmark.outputs.report }}
recreate: true
type-diff:
name: Type-diff with Node ${{ matrix.node }} in ${{ matrix.os }}
runs-on: ${{ matrix.os }}
if: github.event.pull_request.head.repo.full_name == github.repository
timeout-minutes: 30
strategy:
matrix:
os: ['ubuntu-latest']
node: ['18.7.0']
steps:
- uses: actions/checkout@v3
name: Checkout [main]
with:
fetch-depth: 0
- name: Setup deps
uses: ./.github/actions/setup-cli-deps
with:
node-version: ${{ matrix.node }}
- name: Build
run: pnpm nx run-many --all --skip-nx-cache --target=build --exclude=features
- name: Type-diff
working-directory: workspace
id: type-diff
run: pnpm nx run type-diff
- uses: marocchino/sticky-pull-request-comment@fcf6fe9e4a0409cd9316a5011435be0f3327f1e1 # [email protected]
if: steps.type-diff.outputs.report != ''
with:
header: Type-diff
message: ${{ steps.type-diff.outputs.report }}
recreate: true