forked from expressjs/expressjs.com
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 769 Bytes
/
ci.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
name: ci
on:
pull_request:
branches:
- gh-pages
push:
branches:
- gh-pages
pull_request_review:
types: [submitted]
jobs:
test:
runs-on: ubuntu-latest
if: |
github.event.pull_request.draft != true &&
(github.event_name == 'pull_request_review' && github.event.review.state == 'approved') ||
github.event_name != 'pull_request_review'
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install Node.js dependencies
run: npm install
- name: Run tests
shell: bash
run: npm test
- name: Check Docker support
shell: bash
run: |
docker --version
make build