Skip to content

Commit

Permalink
Fixed linting issues and added another change from Gage's PR
Browse files Browse the repository at this point in the history
  • Loading branch information
antowaddle committed Dec 30, 2024
1 parent 6e51028 commit 4474251
Showing 1 changed file with 33 additions and 3 deletions.
36 changes: 33 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Test
on: [push, pull_request]
jobs:
CypressMockTests:
CypressMockTestSetup:
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand All @@ -15,8 +15,38 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Install Node.js packages for Cypress
- name: Node.js modules cache
uses: actions/cache@v4
id: modules-cache
with:
path: |
~/.cache/Cypress
${{ github.workspace }}/node_modules
${{ github.workspace }}/backend/node_modules
${{ github.workspace }}/frontend/node_modules
key: ${{ runner.os }}-${{ matrix.node-version }}-modules-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
if: steps.modules-cache.outputs.cache-hit != 'true'
run: npm install
- name: Check for uncomitted changes
run: git diff --exit-code

Lint:
needs: CypressMockTestSetup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Restore cache
uses: actions/cache@v4
with:
path: |
~/.cache/Cypress
${{ github.workspace }}/node_modules
${{ github.workspace }}/backend/node_modules
${{ github.workspace }}/frontend/node_modules
key: ${{ runner.os }}-18.x-modules-${{ hashFiles('**/package-lock.json') }}
- name: Run linting and formatting checks
run: npm run test:fix

Get-Test-Groups:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -51,7 +81,7 @@ jobs:
fi
Cypress-Tests:
needs: [CypressMockTests, Get-Test-Groups]
needs: [CypressMockTestSetup, Get-Test-Groups]
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand Down

0 comments on commit 4474251

Please sign in to comment.