Skip to content

Commit

Permalink
bump tests
Browse files Browse the repository at this point in the history
  • Loading branch information
reececomo committed Apr 27, 2024
1 parent 6ff069b commit f03f98b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 18 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,24 @@ jobs:
strategy:
matrix:
include:
- label: PixiJS v6
package: [email protected]
# https://pixijs.com/versions

- label: PixiJS v7
package: [email protected]
- label: v6
package-version: 6.5.10

- label: PixiJS v8
package: [email protected]
- label: v7
package-version: 7.4.2

name: Test @ ${{ matrix.label }}
- label: v8
package-version: 8.1.0

name: PixiJS ${{ matrix.label }} (@${{ matrix.package-version }})
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20.x
- run: npm install
- name: Use ${{ matrix.package }}
run: npm install ${{ matrix.package }}
- name: Install PixiJS v${{ matrix.package-version }}
run: npm install pixi.js@v${{ matrix.package-version }}
- run: npm run test
18 changes: 9 additions & 9 deletions src/__tests__/Action.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -548,11 +548,11 @@ describe('Action', () => {

describe('runOnChild()', () => {
it('passes the action to the named child with PixiJS v8 label', () => {
const childNode = new Container();
(childNode as any).label = 'myChildNode';
const childNode: any = new Container();
childNode.label = 'myChildNode';

const parentNode = new Container();
parentNode.addChild(childNode);
parentNode.addChild(childNode as any);

parentNode.run(
Action.runOnChild('myChildNode', Action.rotateBy(Math.PI, 1.0))
Expand All @@ -574,7 +574,7 @@ describe('Action', () => {
childNode.name = 'myChildNode';

const parentNode = new Container();
parentNode.addChild(childNode);
parentNode.addChild(childNode as any);

parentNode.run(
Action.runOnChild('myChildNode', Action.rotateBy(Math.PI, 1.0))
Expand All @@ -596,7 +596,7 @@ describe('Action', () => {
childNode.name = 'otherChildNode';

const parentNode = new Container();
parentNode.addChild(childNode);
parentNode.addChild(childNode as any);

parentNode.run(
Action.runOnChild('myChildNode', Action.rotateBy(Math.PI, 1.0))
Expand Down Expand Up @@ -742,8 +742,8 @@ describe('Action and nodes', () => {
const grandparent = new Container();
const parent = new Container();
const node = new Container();
grandparent.addChild(parent);
parent.addChild(node);
grandparent.addChild(parent as any);
parent.addChild(node as any);

grandparent.speed = 4.0;
parent.speed = 0.5;
Expand Down Expand Up @@ -805,8 +805,8 @@ describe('Action and nodes', () => {
const grandparent = new Container();
const parent = new Container();
const node = new Container();
grandparent.addChild(parent);
parent.addChild(node);
grandparent.addChild(parent as any);
parent.addChild(node as any);

node.run(action);
expect(node.hasActions()).toBe(true);
Expand Down

0 comments on commit f03f98b

Please sign in to comment.