Skip to content

Commit

Permalink
Hook up shortcut key to export as png
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushmanchhabra committed Mar 11, 2024
1 parent e51a3c7 commit 51cb9a1
Show file tree
Hide file tree
Showing 9 changed files with 7,668 additions and 9,382 deletions.
21 changes: 21 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "."
schedule:
interval: "weekly"
target-branch: "dev-1047"
versioning-strategy: increase
groups:
npm:
patterns:
- "*"
- package-ecosystem: "github-actions"
directory: ".github/workflows"
schedule:
interval: "weekly"
target-branch: "dev-1047"
groups:
gha:
patterns:
- "*"
42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: test

on:
pull_request:
branches:
- dev-1047

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

jobs:
karma:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4.1.1
- name: Use Node version defined in manifest
uses: volta-cli/action@v4.0.1
- name: Node.js version
run: node -v
- name: npm version
run: npm -v
- name: Install dependencies
run: npm ci
- name: Run Karma tests
run: npm run grunt karma
casper:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4.1.1
- name: Use Node version defined in manifest
uses: volta-cli/action@v4.0.1
- name: Node.js version
run: node -v
- name: npm version
run: npm -v
- name: Install dependencies
run: npm ci
- name: Run Casper tests
run: npm run grunt karma
4 changes: 2 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,8 @@ module.exports = function(grunt) {
grunt.registerTask('integration-test', ['build-dev', 'connect:test', 'casperjs:integration']);
// Run drawing tests
grunt.registerTask('drawing-test', ['build-dev', 'connect:test', 'casperjs:drawing']);
// Run linting, unit tests, drawing tests and integration tests
grunt.registerTask('test', ['lint', 'unit-test', 'build-dev', 'connect:test', 'casperjs:drawing', 'casperjs:integration']);
// Run drawing tests and integration tests
grunt.registerTask('test', ['build-dev', 'connect:test', 'casperjs:drawing', 'casperjs:integration']);

// Run the tests, even if the linting fails
grunt.registerTask('test-nolint', ['unit-test', 'build-dev', 'connect:test', 'casperjs:drawing', 'casperjs:integration']);
Expand Down
Loading

0 comments on commit 51cb9a1

Please sign in to comment.