Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Integration tests (example split continuation) #5492

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from
30 changes: 30 additions & 0 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Integration Tests

on:
- pull_request
- push

jobs:
dispatch:
runs-on: ubuntu-latest
steps:
- name: Get the branch name
id: get_branch
run: echo ::set-output name=branch::$(echo ${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}})

- name: Get the originating repository
id: get_repo
run: |
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
echo ::set-output name=repo::${{ github.event.pull_request.head.repo.full_name }}
UlisesGascon marked this conversation as resolved.
Show resolved Hide resolved
else
echo ::set-output name=repo::${{ github.repository }}
fi

- name: Repository Dispatch
uses: peter-evans/repository-dispatch@ff45666b9427631e3450c54a1bcbee4d9ff4d7c0 # v3.0.0
UlisesGascon marked this conversation as resolved.
Show resolved Hide resolved
with:
token: "${{ secrets.PAT_INTEGRATION_TESTS}}"
UlisesGascon marked this conversation as resolved.
Show resolved Hide resolved
repository: expressjs/examples
event-type: integration-tests
client-payload: '{"branch": "${{ steps.get_branch.outputs.branch }}", "repo": "${{ steps.get_repo.outputs.repo }}"}'
13 changes: 1 addition & 12 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,19 +101,8 @@ $ npm start

## Examples

To view the examples, clone the Express repo and install the dependencies:
To view the examples, checkout [this dedicated repository](https://github.com/expressjs/examples) and follow the instructions in the README.

```console
$ git clone https://github.com/expressjs/express.git --depth 1
$ cd express
$ npm install
```

Then run whichever example you want:

```console
$ node examples/content-negotiation
```

## Contributing

Expand Down
30 changes: 0 additions & 30 deletions examples/README.md

This file was deleted.

133 changes: 0 additions & 133 deletions examples/auth/index.js

This file was deleted.

2 changes: 0 additions & 2 deletions examples/auth/views/foot.ejs

This file was deleted.

20 changes: 0 additions & 20 deletions examples/auth/views/head.ejs

This file was deleted.

21 changes: 0 additions & 21 deletions examples/auth/views/login.ejs

This file was deleted.

9 changes: 0 additions & 9 deletions examples/content-negotiation/db.js

This file was deleted.

46 changes: 0 additions & 46 deletions examples/content-negotiation/index.js

This file was deleted.

19 changes: 0 additions & 19 deletions examples/content-negotiation/users.js

This file was deleted.

28 changes: 0 additions & 28 deletions examples/cookie-sessions/index.js

This file was deleted.