bulma/.github/workflows/main.yml

50 lines
1.5 KiB
YAML
Raw Normal View History

2021-10-30 22:46:17 +00:00
name: End-to-end tests
on: [push]
jobs:
cypress-run:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
2021-10-30 23:41:37 +00:00
# - uses: actions/cache@v2
# with:
# path: vendor/bundle
# key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
# restore-keys: |
# ${{ runner.os }}-gems-
# - name: Build & Deploy to custom branch
# uses: DavidS/jekyll-deploy@
# with:
# source-dir: docs
# env:
# JEKYLL_ENV: production
# GH_PAGES_TOKEN: ${{ secrets.GH_PAGES_TOKEN }}
2021-10-30 23:21:53 +00:00
# - name: Jekyll Build
# uses: helaili/jekyll-action@v2
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# jekyll_src: "docs"
# jekyll_build_options:
# host: 127.0.0.1
# port: 4000
2021-10-30 23:47:09 +00:00
- uses: ruby/setup-ruby@v1
2021-10-30 23:41:37 +00:00
with:
2021-10-30 23:47:09 +00:00
ruby-version: 2.7
2021-10-30 23:41:37 +00:00
- name: Install dependencies
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gem install jekyll bundler
2021-10-30 23:47:09 +00:00
# - name: Launch Jekyll server
# run: |
# cd docs
# JEKYLL_ENV=production jekyll serve --host 127.0.0.1 --port 4000
2021-10-30 22:46:17 +00:00
- name: Cypress run
uses: cypress-io/github-action@v2
2021-10-30 22:48:54 +00:00
with:
2021-10-30 22:56:54 +00:00
working-directory: docs
2021-10-30 22:48:54 +00:00
install-command: npm install
2021-10-30 22:56:54 +00:00
build: npm run bulma-sass
2021-10-30 23:47:09 +00:00
start: JEKYLL_ENV=production jekyll serve --host 127.0.0.1 --port 4000
2021-10-30 22:56:54 +00:00
wait-on: "http://127.0.0.1:4000"