From 2cc1f8e8f0f9740a4a454b43aa194d6201f3b7cb Mon Sep 17 00:00:00 2001 From: Reece Como Date: Sat, 27 Apr 2024 17:49:05 +1000 Subject: [PATCH] test matrix --- .github/workflows/lint.yml | 12 +++--------- .github/workflows/test.yml | 22 +++++++++------------- 2 files changed, 12 insertions(+), 22 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 28e95b0..14fcb3f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,4 +1,4 @@ -name: "eslint" +name: "lint" on: push: @@ -13,16 +13,10 @@ on: jobs: lint: runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [20.x] - steps: - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + - uses: actions/setup-node@v3 with: - node-version: ${{ matrix.node-version }} + node-version: 20.x - run: npm install - run: npm run lint diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 00b2808..d3ed1aa 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,4 @@ -name: "tests" +name: "test" on: push: @@ -15,23 +15,19 @@ on: jobs: test: runs-on: ubuntu-latest - strategy: matrix: - node-version: [20.x] - pixi-version: [6.1.0, 7.2.0, 8.1.0] + pixijs-package: + - pixi.js@v6.1.0 + - pixi.js@v7.2.0 + - pixi.js@v8.1.0 steps: - uses: actions/checkout@v3 - - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + - uses: actions/setup-node@v3 with: - node-version: ${{ matrix.node-version }} - + node-version: 20.x - run: npm install - - - name: Use pixi.js@${{ matrix.node-version }} - run: npm install pixi-js@${{ matrix.pixi-version}} - + - name: Use ${{ matrix.pixijs-package }} + run: npm install ${{ matrix.pixijs-package }} - run: npm run test