| 1 | name: End-to-end tests |
| 2 | on: [push] |
| 3 | jobs: |
| 4 | cypress-run: |
| 5 | runs-on: ubuntu-20.04 |
| 6 | steps: |
| 7 | - name: Checkout |
| 8 | uses: actions/checkout@v2 |
| 9 | - uses: ruby/setup-ruby@v1 |
| 10 | with: |
| 11 | ruby-version: 2.7 |
| 12 | - name: Install dependencies |
| 13 | env: |
| 14 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 15 | run: | |
| 16 | gem install jekyll bundler |
| 17 | - name: Cypress run |
| 18 | uses: cypress-io/github-action@v2 |
| 19 | with: |
| 20 | working-directory: docs |
| 21 | install-command: npm install |
| 22 | build: npm run bulma-sass |
| 23 | start: jekyll serve --host 127.0.0.1 --port 4000 |
| 24 | wait-on: "http://127.0.0.1:4000" |