daydream

A small matrix web client written in rust
git clone git://archive.git.mtrnord.blog/daydream-mx/daydream.git
Log | Files | Refs | README | LICENSE

tests.yml (2284B)


      1 #name: E2E Tests
      2 #on: [push]
      3 #jobs:
      4 #  chrome:
      5 #    runs-on: ubuntu-latest
      6 #    strategy:
      7 #      matrix:
      8 #        # run 3 copies of the current job in parallel
      9 #        containers: [1, 2, 3]
     10 #    steps:
     11 #      - uses: actions/checkout@v1
     12 #      - run: rustup default nightly
     13 #      - uses: cypress-io/github-action@v1
     14 #        with:
     15 #          browser: chrome
     16 #          command: npm run test
     17 #        env:
     18 #          WAIT_ON_TIMEOUT: 600000
     19 #      - run: |
     20 #          mkdir -p cypress/screenshots
     21 #          mkdir -p cypress/videos
     22 #      # after the test run completes
     23 #      # store videos and any screenshots
     24 #      # NOTE: screenshots will be generated only if E2E test failed
     25 #      # thus we store screenshots only on failures
     26 #      # Alternative: create and commit an empty cypress/screenshots folder
     27 #      # to always have something to upload
     28 #      - uses: actions/upload-artifact@v2
     29 #        if: failure()
     30 #        with:
     31 #          name: cypress-screenshots
     32 #          path: cypress/screenshots
     33 #      # Test run video was always captured, so this action uses "always()" condition
     34 #      - uses: actions/upload-artifact@v2
     35 #        if: always()
     36 #        with:
     37 #          name: cypress-videos
     38 #          path: cypress/videos
     39 #  #firefox:
     40 #  #  runs-on: ubuntu-latest
     41 #  #  container:
     42 #  #    image: cypress/browsers:node12.16.1-chrome80-ff73
     43 #  #    options: --user 1001
     44 #  #  steps:
     45 #  #    - uses: actions/checkout@v1
     46 #  #    - uses: cypress-io/github-action@v1
     47 #  #      with:
     48 #  #        browser: firefox
     49 #  #        command: npm run test:firefox
     50 #  #    # after the test run completes
     51 #  #    # store videos and any screenshots
     52 #  #    # NOTE: screenshots will be generated only if E2E test failed
     53 #  #    # thus we store screenshots only on failures
     54 #  #    # Alternative: create and commit an empty cypress/screenshots folder
     55 #  #    # to always have something to upload
     56 #  #    - uses: actions/upload-artifact@v1
     57 #  #      if: failure()
     58 #  #      with:
     59 #  #        name: cypress-screenshots
     60 #  #        path: cypress/screenshots
     61 #  #    # Test run video was always captured, so this action uses "always()" condition
     62 #  #    - uses: actions/upload-artifact@v1
     63 #  #      if: always()
     64 #  #      with:
     65 #  #        name: cypress-videos
     66 #  #        path: cypress/videos