Switch continuous integration from Travis CI to GitHub Actions (#146)

Travis CI no longer allows unlimited usage in the free tier.
This commit is contained in:
Hugo Locurcio
2020-11-23 17:12:44 +01:00
committed by GitHub
parent 04f8e4ff42
commit bee1f74805
3 changed files with 36 additions and 15 deletions

6
.github/dependabot.yml vendored Normal file
View File

@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"

30
.github/workflows/ci.yml vendored Normal file
View File

@@ -0,0 +1,30 @@
name: Continuous integration
on:
push:
pull_request:
schedule:
# Every day at midnight (UTC).
# URLs can decay over time. Setting up a schedule makes it possible to be warned
# about dead links as soon as possible.
- cron: "0 0 * * *"
env:
RUBY_VERSION: "2.7.2"
jobs:
check:
name: Check URL validity
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: actions/setup-ruby@v1
with:
ruby-version: ${{ env.RUBY_VERSION }}
- name: Run awesome_bot
run: |
gem install awesome_bot
awesome_bot --files "README.md" --white-list "https://awesome.re,https://godotengine.org,https://www.youtube.com"

View File

@@ -1,15 +0,0 @@
os: linux
dist: bionic
language: ruby
rvm:
- "2.7.1"
install:
- pyenv global 3.8.1
- pip3 install --user pre-commit
- gem install awesome_bot
script:
- '"$HOME/.local/bin/pre-commit" run --all-files'
- awesome_bot --files "README.md" --white-list "https://awesome.re,https://godotengine.org,https://www.youtube.com"