Skip to content

Commit

Permalink
Fix frontend CI workflow
Browse files Browse the repository at this point in the history
- Uses only version 14 for testing main flow
- Updates checkout and setup-node
- Removes cache for node-next versions
  • Loading branch information
Tonkpils committed Sep 16, 2023
1 parent 11c95d5 commit ab933f2
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,16 @@ jobs:
- 'frontend/**'
- '.github/workflows/**'
npm-test:
strategy:
matrix:
node_version: ['12.22.6', '14.21']
test-app:
needs: changes
if: ${{ needs.changes.outputs.frontend == 'true' }}
runs-on: ubuntu-latest
timeout-minutes: 7
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}
node-version: 14
cache: npm
cache-dependency-path: frontend/package-lock.json
- run: npm install -g npm@7.0.0
Expand All @@ -60,21 +57,12 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 7
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}
cache: npm
cache-dependency-path: frontend/package-lock.json
- run: npm install -g npm@7.0.0
- run: npm install
working-directory: ./frontend
- run: npm run test
working-directory: ./frontend

test-app:
name: Test app
needs: [ npm-test ]
runs-on: ubuntu-latest
steps:
- run: echo "done"

0 comments on commit ab933f2

Please sign in to comment.