Skip to content

Commit

Permalink
Merge pull request #7 from UlisesGascon/tools/integration-test
Browse files Browse the repository at this point in the history
Add support for Integration tests
  • Loading branch information
UlisesGascon authored Feb 18, 2024
2 parents 22cdcf4 + 3cc30a2 commit d3485f9
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 44 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: ci

on:
- pull_request
- push
pull_request:
push:
repository_dispatch:
types: [integration-tests]

jobs:
test:
Expand Down Expand Up @@ -30,8 +32,15 @@ jobs:
node-version: "21.1"

steps:
- name: Set EXPRESS_BRANCH_NAME
run: echo "EXPRESS_BRANCH_NAME=${{ github.event.client_payload.branch || 'master' }}" >> $GITHUB_ENV

- uses: actions/checkout@v3

- name: Replace Expressjs branch name in package.json
run: |
jq '.dependencies.express = "git+https://github.com/expressjs/express.git#'${EXPRESS_BRANCH_NAME}'"' package.json > temp.json && mv temp.json package.json
- name: Install Node.js ${{ matrix.node-version }}
shell: bash -eo pipefail -l {0}
run: |
Expand Down
82 changes: 41 additions & 41 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"private": true,
"homepage": "http://expressjs.com/",
"dependencies": {
"express": "4.18.2",
"express": "git+https://github.com/expressjs/express.git#master",
"after": "0.8.2",
"connect-redis": "3.4.2",
"cookie-parser": "1.4.6",
Expand Down

0 comments on commit d3485f9

Please sign in to comment.