Selaa lähdekoodia

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

Travis CI no longer allows unlimited usage in the free tier.
Hugo Locurcio 4 vuotta sitten
vanhempi
commit
bee1f74805
3 muutettua tiedostoa jossa 36 lisäystä ja 15 poistoa
  1. 6 0
      .github/dependabot.yml
  2. 30 0
      .github/workflows/ci.yml
  3. 0 15
      .travis.yml

+ 6 - 0
.github/dependabot.yml

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

+ 30 - 0
.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"

+ 0 - 15
.travis.yml

@@ -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"