Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Starting a github actions #269

Open
wants to merge 15 commits into
base: develop
Choose a base branch
from
31 changes: 31 additions & 0 deletions .github/workflows/jekyll.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby

name: Jekyll Build

on:
pull_request:
branches: [ develop, master ]

jobs:
jekyll-build:

runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['2.6', '2.7']

steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run jekyll build
run: bundle exec jekyll build

19 changes: 19 additions & 0 deletions .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

name: Lighthouse Performance

on:
pull_request:
branches: [ master ]

jobs:
lighthouse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Audit develop using Lighthouse
uses: treosh/lighthouse-ci-action@v7
with:
urls: https://wwwtest.csh.rit.edu
budgetPath: ./budget.json
uploadArtifacts: true
temporaryPublicStorage: true
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

15 changes: 15 additions & 0 deletions budget.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[
{
"path": "/*",
"timings": [
{
"metric": "speed-index",
"budget": 10000
},
{
"metric": "interactive",
"budget": 8000
}
]
}
]
8 changes: 2 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,8 @@
"description": "The public facing website for [Rochester Institute of Technology](https://rit.edu/)'s [Computer Science House](https://csh.rit.edu).",
"main": "_site/index.html",
"dependencies": {},
"devDependencies": {
"lighthousebot": "git+https://github.com/ebidel/lighthousebot.git"
},
"scripts": {
"lh": "lighthousebot"
},
"devDependencies": {},
"scripts": {},
"repository": {
"type": "git",
"url": "git+https://github.com/ComputerScienceHouse/CSHPublicSite.git"
Expand Down