2020-11-08 16:16:20 +03:00
|
|
|
name: CI
|
2020-10-31 10:22:00 +03:00
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
jobs:
|
2020-11-08 16:16:20 +03:00
|
|
|
|
2020-10-31 10:22:00 +03:00
|
|
|
build:
|
2020-11-08 16:16:20 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- run: pip3 install Flask && cd integration && python3 server.py &
|
|
|
|
- run: wget https://snapshots.mitmproxy.org/5.2/mitmproxy-5.2-linux.tar.gz -O - | tar -xz && ./mitmdump -p 8888 --modify-header "/From-Proxy/Hello" &
|
|
|
|
- name: Run build
|
|
|
|
run: ./build.sh
|
|
|
|
- name: Run integration tests
|
|
|
|
run: export PATH="$PWD/target/debug:$PATH" && integration/integration.sh
|
2020-10-31 10:22:00 +03:00
|
|
|
|
2020-11-08 16:16:20 +03:00
|
|
|
release-linux:
|
2020-10-31 10:22:00 +03:00
|
|
|
runs-on: ubuntu-latest
|
2020-11-08 16:16:20 +03:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- run: echo "mypath"
|
|
|
|
- run: echo VERSION=$(grep '^version' packages/hurl/Cargo.toml | cut -f2 -d'"') >> $GITHUB_ENV
|
|
|
|
- run: ci/man.sh
|
|
|
|
- run: ci/release.sh
|
|
|
|
- run: ci/create_tarball.sh linux
|
|
|
|
- run: ci/deb.sh
|
|
|
|
- name: Archive production artifacts
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
path: target/upload/*
|
2020-10-31 10:22:00 +03:00
|
|
|
|
2020-11-08 16:16:20 +03:00
|
|
|
release-osx:
|
|
|
|
runs-on: macos-latest
|
2020-10-31 10:22:00 +03:00
|
|
|
steps:
|
2020-11-08 16:16:20 +03:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- run: echo VERSION=$(grep '^version' packages/hurl/Cargo.toml | cut -f2 -d'"') >> $GITHUB_ENV
|
|
|
|
- run: ci/man.sh
|
|
|
|
- run: ci/release.sh
|
|
|
|
- run: ci/create_tarball.sh osx
|
|
|
|
- name: Archive production artifacts
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
path: target/upload/*
|