Skip to content

Github CI pour check compilation #2

Github CI pour check compilation

Github CI pour check compilation #2

Workflow file for this run

name: Check compilation
on:
push:
branches:
- '*'
pull_request:
branches:
- main
jobs:
lint-and-build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['14.x', '16.x', '18.x', '20.x']
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js ${{matrix.node-version}}
uses: actions/setup-node@v2
with:
node-version: ${{matrix.node-version}}
- name: NPM Install
run: npm install
- name: NPM Lint
run: npm run lint
- name: Build
run: npm run build
continue-on-error: true
- name: Check Lint
run: |

Check failure on line 39 in .github/workflows/compile.yml

View workflow run for this annotation

GitHub Actions / Check compilation

Invalid workflow file

The workflow is not valid. .github/workflows/compile.yml (Line: 39, Col: 14): Unrecognized function: 'success'. Located at position 1 within expression: success()
if [ ${{ success() }} != 'true' ]; then
echo "La compilation a échoué."
exit 1
fi