Update travis

This commit is contained in:
Julien Bisconti 2020-03-15 10:33:02 +01:00
parent c750020187
commit dec5497a56
No known key found for this signature in database
GPG Key ID: 62772C6698F736CB
3 changed files with 4 additions and 76 deletions

View File

@ -1,33 +0,0 @@
name: Build site
on:
push:
branches:
- master
paths:
- '.github/workflows/build.yml'
- 'README.md'
jobs:
build_site:
runs-on: ubuntu-latest
name: Build site
steps:
- uses: actions/checkout@master
with:
fetch-depth: 1
- uses: actions/setup-node@master
with:
node-version: '12.x'
- name: Determine npm cache directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
- name: Restore npm cache
uses: actions/cache@v1
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm run build

View File

@ -1,23 +0,0 @@
name: Check links
on:
push:
paths:
- '.github/workflows/check_links.yaml'
- 'README.md'
jobs:
check_links:
runs-on: ubuntu-latest
name: Check links
steps:
- uses: actions/checkout@master
with:
fetch-depth: 1
- uses: actions/setup-ruby@v1
with:
ruby-version: '2.6'
- name: Awesome bot checking
run: |
gem install awesome_bot
awesome_bot README.md --white-list edit/master,sindresorhus/awesome,www.udacity.com,screwdriver.cd,veggiemonk/awesome-docker,vimeo.com,cycle.io,www.youtube.com

View File

@ -1,23 +1,7 @@
# This is a weird way of telling Travis to use the fast container-based test
# runner instead of the slow VM-based runner.
sudo: false
language: node_js
# Only clone the most recent commit.
git:
depth: 1
# keep cache of the deps
cache:
directories:
- 'node_modules'
before_install:
- rvm install 2.2
language: ruby
rvm:
- 2.6.5
before_script:
- gem install awesome_bot
script:
- awesome_bot README.md --white-list edit/master,sindresorhus/awesome,www.udacity.com,screwdriver.cd,veggiemonk/awesome-docker,vimeo.com,cycle.io,www.youtube.com
- awesome_bot README.md