Skip to content

Update to Ruby 3

Update to Ruby 3 #471

Workflow file for this run

name: frontend
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
env:
NODE_VERSION: 12.22.6
jobs:
changes:
runs-on: ubuntu-latest
outputs:
backend: ${{ steps.filter.outputs.backend }}
frontend: ${{ steps.filter.outputs.frontend }}
steps:
- uses: actions/[email protected]
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
backend:
- 'backend/**'
- '.github/workflows/**'
frontend:
- 'frontend/**'
- '.github/workflows/**'
test-app:
needs: changes
if: ${{ needs.changes.outputs.frontend == 'true' }}
name: Test app
runs-on: ubuntu-latest
timeout-minutes: 7
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}
cache: npm
cache-dependency-path: frontend/package-lock.json
- run: npm install -g npm@latest
- run: npm install
working-directory: ./frontend
- run: npm run test
working-directory: ./frontend