Skip to content

improve and fix CI #492

improve and fix CI

improve and fix CI #492

Workflow file for this run

name: Test (Frontend)
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
CI: true
NODE_VERSION: 18
jobs:
lint:
name: Lint (Frontend)
runs-on: [ubuntu-latest]
strategy:
matrix:
target: [js, hbs]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: "yarn"

Check failure on line 29 in .github/workflows/test-frontend.yml

View workflow run for this annotation

GitHub Actions / Test (Frontend)

Invalid workflow file

The workflow is not valid. .github/workflows/test-frontend.yml (Line: 29, Col: 9): Unexpected value 'cache' .github/workflows/test-frontend.yml (Line: 47, Col: 9): Unexpected value 'cache'
- name: Install dependencies
run: yarn install --frozen-lockfile --cwd=frontend
- name: Lint ${{ matrix.target }}
run: yarn --cwd=frontend lint:${{ matrix.target }}
test:
name: Tests (Frontend)
needs: [lint]
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: "yarn"
- name: Install dependencies
run: yarn install --frozen-lockfile --cwd=frontend
- name: Run tests
run: yarn --cwd=frontend test