From bee1f7480539a2820cf5e357aaaf2400c35f50da Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Mon, 23 Nov 2020 17:12:44 +0100 Subject: [PATCH] Switch continuous integration from Travis CI to GitHub Actions (#146) Travis CI no longer allows unlimited usage in the free tier. --- .github/dependabot.yml | 6 ++++++ .github/workflows/ci.yml | 30 ++++++++++++++++++++++++++++++ .travis.yml | 15 --------------- 3 files changed, 36 insertions(+), 15 deletions(-) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..1230149 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..2e5af8f --- /dev/null +++ b/.github/workflows/ci.yml @@ -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" diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d59a42a..0000000 --- a/.travis.yml +++ /dev/null @@ -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"