Skip to content

Commit 6193c62

Browse files
committed
ci: run pr checks on mac
1 parent db0ce3e commit 6193c62

File tree

2 files changed

+49
-31
lines changed

2 files changed

+49
-31
lines changed

.github/workflows/pr.yaml

Lines changed: 7 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -7,36 +7,12 @@ on:
77

88
workflow_dispatch:
99

10-
concurrency:
11-
group: pr-${{ github.head_ref || github.run_id }}
12-
cancel-in-progress: true
13-
14-
env:
15-
TILT_VERSION: 'v0.33.21'
16-
1710
jobs:
18-
tests:
11+
checks-ubuntu:
1912
name: Tests
20-
runs-on: ubuntu-latest
21-
steps:
22-
- uses: actions/checkout@v4
23-
24-
- name: Setup Tilt
25-
run: curl -fsSL https://raw.githubusercontent.com/tilt-dev/tilt/${TILT_VERSION}/scripts/install.sh | bash
26-
27-
- name: Setup pnpm
28-
uses: pnpm/action-setup@v4
29-
30-
- uses: actions/setup-node@v4
31-
with:
32-
node-version-file: .nvmrc
33-
cache: pnpm
34-
35-
- name: Run npm install
36-
run: pnpm install --frozen-lockfile
37-
38-
- name: Eslint
39-
run: pnpm run lint
40-
41-
- name: Run Tests
42-
run: pnpm run tilt:ci
13+
strategy:
14+
matrix:
15+
runner: [ubuntu-latest, macos-latest]
16+
uses: ./.github/workflows/reusable-pr.yaml
17+
with:
18+
runner: ${{ matrix.runner }}

.github/workflows/reusable-pr.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: checks
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
runner:
7+
required: true
8+
type: string
9+
10+
concurrency:
11+
group: pr-${{ inputs.runner }}-${{ github.head_ref || github.run_id }}
12+
cancel-in-progress: true
13+
14+
env:
15+
TILT_VERSION: 'v0.33.21'
16+
17+
jobs:
18+
tests:
19+
name: Tests - ${{ inputs.runner }}
20+
runs-on: ${{ inputs.runner }}
21+
steps:
22+
- uses: actions/checkout@v4
23+
24+
- name: Setup Tilt
25+
run: curl -fsSL https://raw.githubusercontent.com/tilt-dev/tilt/${TILT_VERSION}/scripts/install.sh | bash
26+
27+
- name: Setup pnpm
28+
uses: pnpm/action-setup@v4
29+
30+
- uses: actions/setup-node@v4
31+
with:
32+
node-version-file: .nvmrc
33+
cache: pnpm
34+
35+
- name: Run npm install
36+
run: pnpm install --frozen-lockfile
37+
38+
- name: Eslint
39+
run: pnpm run lint
40+
41+
- name: Run Tests
42+
run: DOCKER_HOST="$(docker context inspect colima -f '{{ .Endpoints.docker.Host }}')" pnpm run tilt:ci

0 commit comments

Comments
 (0)