Skip to content

Commit

Permalink
Merge pull request #6 from Elao/github-ci-lint
Browse files Browse the repository at this point in the history
[CI] init: add a lint workflow
  • Loading branch information
LedruRomane authored Mar 24, 2024
2 parents 3ecefb4 + 7fb4e8b commit 4a75272
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Lint

on:
push:
branches:
- main
pull_request:
types: [ opened, synchronize, reopened, ready_for_review ]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:

lint_front:
name: 'Lint Front'
runs-on: ubuntu-latest
timeout-minutes: 15
# Do not run on WIP or Draft PRs
if: "!github.event.pull_request || (!contains(github.event.pull_request.labels.*.name, 'WIP') && github.event.pull_request.draft == false)"

steps:

- name: 'Checkout'
uses: actions/checkout@v3

- name: 'Install dependencies'
run: |
make install@integration
- name: 'ESLint front'
run: |
make lint.eslint@integration
- name: 'TypeScript check front'
run: |
make lint.tsc@integration

0 comments on commit 4a75272

Please sign in to comment.