forked from HireFrederick/puffing-billy
-
Notifications
You must be signed in to change notification settings - Fork 0
Setup GitHub actions #3
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
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
33b356a
fixing specs
gouravjawale28 3b15198
Create ci_steps.yml
gouravjawale28 d584c5f
Update ci_steps.yml
gouravjawale28 9d5c795
Update ci_steps.yml
gouravjawale28 3c75a92
Update ci_steps.yml
gouravjawale28 cfb8f67
Update ci_steps.yml
gouravjawale28 f2a81c6
Update ci_steps.yml
gouravjawale28 e582b7d
Update request_handler_spec.rb
gouravjawale28 b9df7f5
Update proxy_handler_spec.rb
gouravjawale28 3e7ec6b
Update cache_spec.rb
gouravjawale28 1542436
Update proxy_spec.rb
gouravjawale28 29456af
Update spec_helper.rb
gouravjawale28 bc70f09
Update ci_steps.yml
gouravjawale28 d474c89
Update ci_steps.yml
gouravjawale28 596c7f7
Update cache_spec.rb
gouravjawale28 c052559
Update proxy_spec.rb
gouravjawale28 0d521b3
Update cache_spec.rb
gouravjawale28 092ceee
Update ci_steps.yml
gouravjawale28 2c188b1
Update ci_steps.yml
gouravjawale28 9c9b069
Update cache_spec.rb
gouravjawale28 09de86e
Update cache_handler_spec.rb
gouravjawale28 06c8e1e
Update ci_steps.yml
gouravjawale28 5890d76
Update ci_steps.yml
gouravjawale28 69050f5
Update ci_steps.yml
gouravjawale28 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,79 @@ | ||
| name: CI | ||
|
|
||
| on: [push, pull_request] | ||
|
|
||
| jobs: | ||
| test: | ||
| name: Ruby ${{ matrix.ruby }} | ||
| runs-on: ubuntu-latest | ||
| container: ruby:${{ matrix.ruby }} | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| ruby: ['2.6'] | ||
|
|
||
| env: | ||
| QT_SELECT: qt5 | ||
| OPENSSL_CONF: /dev/null | ||
| LANG: C.UTF-8 | ||
| LC_ALL: C.UTF-8 | ||
|
|
||
| steps: | ||
| - name: Fix APT for EOL Debian | ||
| run: | | ||
| if grep -q buster /etc/apt/sources.list 2>/dev/null; then | ||
| echo "deb [trusted=yes] http://archive.debian.org/debian buster main" > /etc/apt/sources.list | ||
| echo "deb [trusted=yes] http://archive.debian.org/debian-security buster/updates main" >> /etc/apt/sources.list | ||
| fi | ||
| echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf.d/99archive | ||
| echo 'Acquire::AllowInsecureRepositories "true";' >> /etc/apt/apt.conf.d/99archive | ||
|
|
||
| - name: Install system packages | ||
| run: | | ||
| apt-get update -qq | ||
| apt-get install -y --no-install-recommends \ | ||
| git ca-certificates curl bzip2 \ | ||
| build-essential g++ make \ | ||
| qt5-qmake qtbase5-dev libqt5webkit5-dev qtchooser \ | ||
| xvfb xauth libfontconfig1 libfreetype6 libxrender1 libxext6 libx11-6 \ | ||
| libssl-dev zlib1g-dev | ||
|
|
||
| - name: Setup qmake | ||
| run: | | ||
| mkdir -p /usr/share/qtchooser | ||
| echo "/usr/lib/x86_64-linux-gnu/qt5/bin" > /usr/share/qtchooser/qt5.conf | ||
| echo "/usr/lib/x86_64-linux-gnu" >> /usr/share/qtchooser/qt5.conf | ||
| ln -sf /usr/lib/x86_64-linux-gnu/qt5/bin/qmake /usr/bin/qmake 2>/dev/null || true | ||
| qmake --version | ||
|
|
||
| - name: Install PhantomJS | ||
| run: | | ||
| curl -L -o phantomjs.tar.bz2 "https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-linux-x86_64.tar.bz2" | ||
| tar xf phantomjs.tar.bz2 --wildcards '*/bin/phantomjs' --strip-components=2 | ||
| mv phantomjs /usr/local/bin/ | ||
| rm phantomjs.tar.bz2 | ||
| phantomjs --version || echo "PhantomJS installed" | ||
|
|
||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Install Bundler | ||
| run: gem install bundler -v '< 2' | ||
|
|
||
| - name: Bundle install | ||
| run: | | ||
| bundle config set force_ruby_platform true | ||
| echo "gem 'ffi', '~> 1.15.0'" >> Gemfile | ||
| echo "gem 'regexp_parser', '~> 1.8'" >> Gemfile | ||
| echo "gem 'public_suffix', '~> 4.0'" >> Gemfile | ||
| echo "gem 'capybara', '~> 3.35.0'" >> Gemfile | ||
| echo "gem 'addressable', '~> 2.7.0'" >> Gemfile | ||
| echo "gem 'nokogiri', '~> 1.12.0'" >> Gemfile | ||
| echo "gem 'mini_mime', '~> 1.1.0'" >> Gemfile | ||
| echo "gem 'rack', '~> 2.2.0'" >> Gemfile | ||
| bundle install --jobs 4 --retry 3 | ||
| env: | ||
| QMAKE: /usr/bin/qmake | ||
|
|
||
| - name: Run tests | ||
| run: xvfb-run -a bundle exec rspec spec | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, is it possible to use the official action
actions/checkoutto checkout the code: https://github.com/actions/checkoutThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @sgyyz , I have modified the checkout section now.