forked from github-linguist/linguist
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use GitHub Actions for CI and Prepare to use GitHub Package Registry (g…
…ithub-linguist#4600) * Add github CI workflow * Run prep cmds directly * Add comments * Add github_repo metadata This is so we can start using GitHub Package Registry. * Remove old travis config * Update mentions of Travis * Add push deets for GPR * Use script for CI deps installation * Use pipe delimiter so we don't need to escape slashes * Rename dir * Use syntax for single cmd * Link to GitHub Actions
- Loading branch information
Showing
6 changed files
with
39 additions
and
41 deletions.
There are no files selected for viewing
This file contains 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,22 @@ | ||
name: CI | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
ruby: [ '2.6.x', '2.5.x', '2.4.x', '2.3.x' ] | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Set up Ruby | ||
uses: actions/setup-ruby@v1 | ||
with: | ||
version: ${{ matrix.ruby }} | ||
- name: Install dependencies | ||
run: script/ci/install_deps | ||
- name: Run tests | ||
run: bundle exec rake | ||
- name: Check Licenses | ||
run: script/licensed status |
This file was deleted.
Oops, something went wrong.
This file contains 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 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 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 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 |
---|---|---|
@@ -1,8 +1,7 @@ | ||
#!/bin/sh | ||
|
||
set -ex | ||
set -e | ||
|
||
# As of 3 Jan 2019, Travis defaults to bundler 2.0 - https://docs.travis-ci.com/user/languages/ruby/#bundler-20 | ||
# Linguist still requires Bundler 1.x due to Licensed. | ||
gem uninstall -v '>= 2' -ax bundler || true | ||
gem install bundler -v '< 2' | ||
|
@@ -11,8 +10,12 @@ gem install bundler -v '< 2' | |
git fetch origin master:master v2.0.0:v2.0.0 test/attributes:test/attributes test/master:test/master | ||
|
||
# Replace SSH links to submodules by HTTPS links. | ||
sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules | ||
sed -i 's|[email protected]:|https://github.com/|' .gitmodules | ||
|
||
# Fetch all grammars | ||
git submodule init | ||
git submodule sync --quiet | ||
script/fast-submodule-update | ||
|
||
# Install dependent gems | ||
bundle install --jobs 4 --retry 3 --without debug |