Skip to content

Commit

Permalink
Merge branch 'release/1.12.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
nwtgck committed May 30, 2022
2 parents 61a80a2 + 2aced42 commit 06b3d99
Show file tree
Hide file tree
Showing 8 changed files with 375 additions and 567 deletions.
38 changes: 35 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-18.04
strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 16.x]
node-version: [12.x, 14.x, 16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
Expand All @@ -19,13 +19,45 @@ jobs:
- run: npm run lint
- run: npm run build
- run: npm test
- name: Operational test
run: |
set -eux
# Create certificates
(mkdir /tmp/ssl_certs && cd /tmp/ssl_certs && openssl req -x509 -newkey rsa:4096 -keyout server.key -out server.crt -days 365 -sha256 -nodes --subj '/CN=localhost/')
# Run a server
node ./dist/src/index.js --http-port=8080 --enable-https=true --https-port=8443 --key-path=/tmp/ssl_certs/server.key --crt-path=/tmp/ssl_certs/server.crt &> /tmp/piping_log.txt &
# Wait for server running
sleep 1
# Create a file to send
echo 'hello, world' > /tmp/hello.txt
# Send and wait for a receiver
curl -T /tmp/hello.txt localhost:8080/mypath &
# Get data as a file
curl localhost:8080/mypath > /tmp/download.txt
# Print downloaded file
cat /tmp/download.txt
# Test the equality
diff /tmp/hello.txt /tmp/download.txt
# Send and wait for a receiver
curl -kT /tmp/hello.txt https://localhost:8443/mypath &
# Get data as a file
curl -k https://localhost:8443/mypath > /tmp/download.txt
# Print downloaded file
cat /tmp/download.txt
# Test the equality
diff /tmp/hello.txt /tmp/download.txt
# Print server log
cat /tmp/piping_log.txt
docker_test:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v3
- run: docker build -t piping-server .
- name: Working test with Docker image
- name: Operational test with Docker image
run: |
set -eux
# Run a server
Expand All @@ -46,7 +78,7 @@ jobs:
docker logs piping
# Delete container
docker rm -f piping
- name: Working test with Docker image for HTTPS
- name: Operational test with Docker image for HTTPS
run: |
set -eux
# Create certificates
Expand Down
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)

## [Unreleased]

## [1.12.3] - 2022-05-30
### Changed
* Update dependencies
* Allow cross-origin request to private network (Private Network Access Preflight)

## [1.12.2] - 2022-05-22
### Changed
* Update dependencies
Expand Down Expand Up @@ -428,7 +433,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
* Docker automated build on Docker Hub
* Support HTTPS

[Unreleased]: https://github.com/nwtgck/piping-server/compare/v1.12.2...HEAD
[Unreleased]: https://github.com/nwtgck/piping-server/compare/v1.12.3...HEAD
[1.12.3]: https://github.com/nwtgck/piping-server/compare/v1.12.2...v1.12.3
[1.12.2]: https://github.com/nwtgck/piping-server/compare/v1.12.1...v1.12.2
[1.12.1]: https://github.com/nwtgck/piping-server/compare/v1.12.0...v1.12.1
[1.12.0]: https://github.com/nwtgck/piping-server/compare/v1.11.1...v1.12.0
Expand Down
25 changes: 0 additions & 25 deletions MYNOTE.md

This file was deleted.

Loading

0 comments on commit 06b3d99

Please sign in to comment.