Skip to content

Commit

Permalink
feat: integration tests for /dl/:filename
Browse files Browse the repository at this point in the history
  • Loading branch information
dopry committed Sep 13, 2023
1 parent 5de4a1e commit f011201
Show file tree
Hide file tree
Showing 18 changed files with 5,997 additions and 2,963 deletions.
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

0 comments on commit f011201

Please sign in to comment.