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

feat: integration tests for /dl/:filename #10

Merged
merged 1 commit into from
Sep 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,15 @@ jobs:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
cache: "npm"
- run: npm ci
# - run: npm run lint
- run: npm test
env:
GITHUB_OWNER: owner-nock-mocked
GITHUB_REPO: repo-nock-mocked
GITHUB_TOKEN: token-nock-mocked
- run: npm run build
- run: npm run semantic-release
env:
Expand Down
1 change: 1 addition & 0 deletions .mocharc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @type { import('mocha').MochaInstanceOptions } */
module.exports = {
color: true,
exit: true,
Expand Down
14 changes: 4 additions & 10 deletions docs/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,13 @@

Pecans can be easily be deployed to a state-less server or PaaS. It only uses the disk as a cache for assets.

### On Heroku:
<!-- ### With docker

Heroku is the perfect solution to host a Pecans instance.
You'll need to build your own pecans image at this time. We do not net publish one.

[![Deploy](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy)

### With docker

Pecans can also be run as a Docker container:

```
docker run -it -p 80:80 -e GITHUB_REPO=username/repo gitbook/pecans
```
docker run -it -p 80:80 -e GITHUB_REPO=username/repo dopry/pecans
``` -->

### On your own server:

Expand Down
4 changes: 4 additions & 0 deletions env.test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# for pecans
export GITHUB_OWNER="owner-nock-mocked"
export GITHUB_REPO="repo-nock-mocked"
export GITHUB_TOKEN="token-nock-mocked"
Loading