Skip to content

Commit

Permalink
Run tests in CI
Browse files Browse the repository at this point in the history
Not running the BrowserStack ones because I don’t want to spend time
getting credentials set up right now.

I’ve changed the browser to headless to avoid the error "no DISPLAY
environment variable specified" in CI.
  • Loading branch information
lawrence-forooghian committed Nov 24, 2023
1 parent 9a0cd73 commit f733809
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Check
on:
workflow_dispatch:
pull_request:
push:
branches:
- main

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Use Python 3.8
uses: actions/setup-python@v4
with:
python-version: '3.8'

- name: Use Node.js 8.x
uses: actions/setup-node@v4
with:
node-version: 8.x

- run: npm ci
- run: npm run grunt -- test:node
- run: npm run grunt -- test:browser:local
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ module.exports = function (grunt) {
},
local: {
reporters: ['progress', 'mocha'],
browsers: ['Firefox'],
browsers: ['FirefoxHeadless'],
},
remote: {
browserStack: {
Expand Down

0 comments on commit f733809

Please sign in to comment.