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

Update github actions #71

Merged
merged 1 commit into from
Nov 8, 2020
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
43 changes: 35 additions & 8 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,47 @@
name: Rust
name: CI

on: [push, pull_request]

env:
CARGO_TERM_COLOR: always

jobs:

build:
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

release-linux:
runs-on: ubuntu-latest
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/*

release-osx:
runs-on: macos-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
- 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/*
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

<br/>

[![deploy status](https://github.com/Orange-OpenSource/hurl/workflows/CI/badge.svg)](https://github.com/Orange-OpenSource/hurl/actions)
[![deploy status](https://travis-ci.org/Orange-OpenSource/hurl.svg?branch=master)](https://travis-ci.org/Orange-OpenSource/hurl/)
[![documentation](https://img.shields.io/badge/-documentation-informational)](https://hurl.dev)

Expand Down