mirror of
https://github.com/expressjs/expressjs.com.git
synced 2026-02-23 20:32:45 +00:00
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Sebastian Beltran <bjohansebas@gmail.com>
66 lines
1.5 KiB
YAML
66 lines
1.5 KiB
YAML
name: ci
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- gh-pages
|
|
pull_request_review:
|
|
types: [submitted]
|
|
push:
|
|
branches:
|
|
- gh-pages
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
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@v5
|
|
with:
|
|
persist-credentials: false
|
|
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v5
|
|
|
|
- name: Install Node.js dependencies
|
|
run: npm install
|
|
|
|
- name: Run tests
|
|
shell: bash
|
|
run: npm test
|
|
|
|
build:
|
|
name: Build
|
|
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@v5
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Setup Ruby
|
|
uses: ruby/setup-ruby@0481980f17b760ef6bca5e8c55809102a0af1e5a # https://github.com/ruby/setup-ruby/releases/tag/v1.263.0
|
|
with:
|
|
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
|
|
|
- name: Jekyll Build
|
|
run: bundle exec jekyll build
|
|
|
|
- name: Check Docker support
|
|
shell: bash
|
|
run: |
|
|
docker --version
|
|
make build
|