Skip to content

Commit

Permalink
ci: use cypress github action to run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SevenOutman committed Aug 1, 2023
1 parent d9a591a commit df6470e
Showing 1 changed file with 10 additions and 20 deletions.
30 changes: 10 additions & 20 deletions .github/workflows/run-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,26 +26,16 @@ jobs:

strategy:
matrix:
browser: [ChromeCi, Firefox]
browser: [chrome, firefox]

# See https://docs.cypress.io/guides/continuous-integration/github-actions
steps:
- uses: actions/checkout@v2
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Cache Node.js modules
uses: actions/cache@v1
- name: Checkout
uses: actions/checkout@v3

# Install NPM dependencies, cache them correctly
# and run all Cypress tests
- name: Cypress run
uses: cypress-io/github-action@v5
with:
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
- name: Install dependencies
run: npm ci
- name: Run headless tests
run: xvfb-run --auto-servernum npm test
env:
CI: true
BROWSER: ${{ matrix.browser }}
browser: ${{ matrix.browser }}

0 comments on commit df6470e

Please sign in to comment.