diff --git a/.github/workflows/jekyll.yml b/.github/workflows/jekyll.yml new file mode 100644 index 00000000..c0344b39 --- /dev/null +++ b/.github/workflows/jekyll.yml @@ -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 + diff --git a/.github/workflows/lighthouse.yml b/.github/workflows/lighthouse.yml new file mode 100644 index 00000000..85b9abb8 --- /dev/null +++ b/.github/workflows/lighthouse.yml @@ -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 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index ac3822d5..00000000 --- a/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: node_js -node_js: - - "12.6" -before_install: - - rvm install 2.6.3 -install: - - gem install bundler - - npm install -before_script: - - bundle install - - npm install -g firebase-tools -script: - - bundle exec jekyll build -after_success: - - firebase deploy --token $FIREBASE_TOKEN --non-interactive - - npm run lh --perf=85 --a11y=85 --bp=85 --seo=85 https://csh-public-site.web.app diff --git a/budget.json b/budget.json new file mode 100644 index 00000000..ba86149a --- /dev/null +++ b/budget.json @@ -0,0 +1,15 @@ +[ + { + "path": "/*", + "timings": [ + { + "metric": "speed-index", + "budget": 10000 + }, + { + "metric": "interactive", + "budget": 8000 + } + ] + } +] diff --git a/package.json b/package.json index 7b822fc1..99d17f45 100644 --- a/package.json +++ b/package.json @@ -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"