Skip to content

Commit 1a1a6f0

Browse files
committed
chore: add CI workflow for snapshot updates and remove pre-commit linting
1 parent fc88df5 commit 1a1a6f0

2 files changed

Lines changed: 67 additions & 1 deletion

File tree

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- main
10+
# Cancel in progress workflows
11+
# in the scenario where we already had a run going for that PR/branch/tag but then triggered a new run
12+
concurrency:
13+
group: "${{ github.workflow }} ✨ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
14+
cancel-in-progress: true
15+
permissions:
16+
pull-requests: write
17+
contents: write
18+
19+
jobs:
20+
test:
21+
name: Test - ${{ matrix.os }} (Node.js ${{ matrix.node-version }})
22+
23+
strategy:
24+
fail-fast: false
25+
matrix:
26+
os: [ubuntu-latest]
27+
node-version: [24]
28+
29+
runs-on: ${{ matrix.os }}
30+
31+
steps:
32+
- name: Checkout code
33+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
34+
35+
- name: Setup Node.js ${{ matrix.node-version }}
36+
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
37+
with:
38+
node-version: ${{ matrix.node-version }}
39+
cache: "npm"
40+
41+
- name: Install dependencies
42+
run: npm ci
43+
44+
- name: Link webpack-dev-server
45+
run: |
46+
cp -R client tmp-client
47+
npm link --ignore-scripts
48+
npm link webpack-dev-server --ignore-scripts
49+
rm -r client
50+
cp -R tmp-client client
51+
52+
- name: Run tests
53+
run: npm run test:only -- --updateSnapshot
54+
55+
- name: Create Pull Request
56+
uses: gr2m/create-or-update-pull-request-action@v1
57+
env:
58+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
with:
60+
commit-message: 'docs: update external docs'
61+
title: 'docs: update external docs'
62+
body: >
63+
This auto-generated PR updates external documentation to the expressjs.com repository.
64+
65+
cc: @expressjs/docs-wg
66+
labels: docs
67+
branch: external-docs

.husky/pre-commit

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
lint-staged

0 commit comments

Comments
 (0)