Skip to content

Commit 6eda472

Browse files
committed
Move Meticulous job to a separate workflow
1 parent 7a4737c commit 6eda472

File tree

2 files changed

+42
-20
lines changed

2 files changed

+42
-20
lines changed

.github/workflows/ci.yaml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,23 +1005,3 @@ jobs:
10051005
fi
10061006
done
10071007
echo "No incompatible licenses detected"
1008-
meticulous:
1009-
runs-on: ubuntu-latest
1010-
steps:
1011-
- name: "Checkout Repository"
1012-
uses: actions/checkout@v4
1013-
- name: Setup Node
1014-
uses: ./.github/actions/setup-node
1015-
- name: Build
1016-
working-directory: ./site
1017-
run: pnpm build
1018-
- name: Serve
1019-
working-directory: ./site
1020-
run: |
1021-
pnpm vite preview &
1022-
sleep 5
1023-
- name: Run Meticulous tests
1024-
uses: alwaysmeticulous/report-diffs-action/cloud-compute@v1
1025-
with:
1026-
api-token: ${{ secrets.METICULOUS_API_TOKEN }}
1027-
app-url: "http://127.0.0.1:4173/"

.github/workflows/meticulous.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Workflow for serving the webapp locally & running Meticulous tests against it.
2+
3+
name: Meticulous
4+
5+
on:
6+
push:
7+
branches:
8+
- main
9+
pull_request:
10+
# Meticulous needs the workflow to be triggered on workflow_dispatch events,
11+
# so that Meticulous can run the workflow on the base commit to compare
12+
# against if an existing workflow hasn't run.
13+
workflow_dispatch:
14+
15+
permissions:
16+
actions: write
17+
contents: read
18+
issues: write
19+
pull-requests: write
20+
statuses: read
21+
22+
jobs:
23+
meticulous:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: "Checkout Repository"
27+
uses: actions/checkout@v4
28+
- name: Setup Node
29+
uses: ./.github/actions/setup-node
30+
- name: Build
31+
working-directory: ./site
32+
run: pnpm build
33+
- name: Serve
34+
working-directory: ./site
35+
run: |
36+
pnpm vite preview &
37+
sleep 5
38+
- name: Run Meticulous tests
39+
uses: alwaysmeticulous/report-diffs-action/cloud-compute@v1
40+
with:
41+
api-token: ${{ secrets.METICULOUS_API_TOKEN }}
42+
app-url: "http://127.0.0.1:4173/"

0 commit comments

Comments
 (0)