-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from michaelchadwick/track-moves
Track moves
- Loading branch information
Showing
31 changed files
with
606 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
name: Continuous Integration | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
pull_request: | ||
|
||
concurrency: | ||
group: ci-${{ github.head_ref || github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
COVERAGE: false | ||
|
||
jobs: | ||
lint: | ||
name: "Lint" | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: pnpm/action-setup@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: pnpm | ||
- name: Install Dependencies | ||
run: pnpm install | ||
- name: Lint | ||
run: pnpm lint | ||
|
||
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 15 | ||
needs: [lint] | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
node-version: [20] | ||
workspace: | ||
- frontend | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: pnpm/action-setup@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: pnpm | ||
- name: Install Dependencies | ||
run: pnpm install | ||
- name: Cypress run | ||
uses: cypress-io/github-action@v6 | ||
# env: | ||
# COVERAGE: true | ||
# - name: Store Code Coverage | ||
# uses: actions/upload-artifact@v4 | ||
# with: | ||
# name: coverage-${{matrix.workspace}} | ||
# path: ./${{matrix.workspace}}/coverage | ||
# retention-days: 1 | ||
# - uses: actions/upload-artifact@v4 | ||
# if: failure() | ||
# with: | ||
# name: replay-${{matrix.workspace}}-test.json | ||
# path: ./${{matrix.workspace}}/test-execution-*.json | ||
# retention-days: 7 | ||
|
||
# upload-coverage: | ||
# name: Upload code coverage | ||
# runs-on: ubuntu-latest | ||
# needs: test | ||
# if: ${{ always() }} | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - uses: actions/download-artifact@v4 | ||
# with: | ||
# name: coverage | ||
# path: coverage | ||
# - run: ls -lh | ||
# - run: ls -lh coverage | ||
# - name: Publish code coverage | ||
# uses: paambaati/[email protected] | ||
# env: | ||
# CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | ||
# with: | ||
# coverageLocations: | | ||
# coverageLocations: ${{github.workspace}}/coverage/lcov.info:lcov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
pnpm test | ||
pnpm test:coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* lib/actions/action.js */ | ||
/* class definition for Action */ | ||
/* eslint-disable no-unused-vars */ | ||
|
||
class Action { | ||
constructor(type) { | ||
this.type = type | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* lib/actions/stock_action.js */ | ||
/* class definition for StockAction */ | ||
/* global Action */ | ||
/* eslint-disable no-unused-vars */ | ||
|
||
class StockAction extends Action { | ||
constructor() { | ||
super() | ||
this.type = 'stock' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* lib/actions/tableau_action.js */ | ||
/* class definition for TableauAction */ | ||
/* global Action */ | ||
/* eslint-disable no-unused-vars */ | ||
|
||
class TableauAction extends Action { | ||
constructor(colId, rowId) { | ||
super() | ||
this.type = 'tableau' | ||
this.colId = parseInt(colId) | ||
this.rowId = parseInt(rowId) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* lib/actions/undo_action.js */ | ||
/* class definition for UndoAction */ | ||
/* global Action */ | ||
/* eslint-disable no-unused-vars */ | ||
|
||
class UndoAction extends Action { | ||
constructor() { | ||
super() | ||
this.type = 'undo' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
assets/js/app/lib/cards/base.js → assets/js/app/lib/classes/cards/base.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.