Skip to content

feat: add eslint support #8

feat: add eslint support

feat: add eslint support #8

Workflow file for this run

name: Test Create React Sandbox
on:
push:
branches: [ "main", "dev/eslint" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
flags: ["", "-t", "-l", "-t -l"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Install Package
run: npm ci && npm link
- name: Create Testing Environment
run: mkdir temp
- name: Run Package Init Script
run: npx create-react-sandbox ${{ matrix.flags }}
working-directory: ./temp
- name: Run linter
if: ${{ contains(matrix.flags, '-l' }}

Check failure on line 39 in .github/workflows/test-workflow.yml

View workflow run for this annotation

GitHub Actions / Test Create React Sandbox

Invalid workflow file

The workflow is not valid. .github/workflows/test-workflow.yml (Line: 39, Col: 13): Unexpected end of expression: ''-l''. Located at position 24 within expression: contains(matrix.flags, '-l'
run: npx eslint
working-directory: ./temp/app
- name: Run Package Build Script
run: npm run build
working-directory: ./temp/app