Skip to content

Commit

Permalink
Run static analysis in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
oblador committed Dec 26, 2024
1 parent d8557ef commit 869eae1
Show file tree
Hide file tree
Showing 4 changed files with 123 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#
name: CI

on:
workflow_dispatch:
pull_request:
types: [opened, synchronize]
paths-ignore:
- '**/*.md'
- '**/*.yml'
- '!.github/workflows/ci.yml'
push:
branches:
- master
paths-ignore:
- '**/*.md'
- '**/*.yml'
- '!.github/workflows/ci.yml'

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: ${{ github.ref_name != 'master' }}

jobs:
static-analysis:
name: Static Analysis
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: .node-version
- run: npm ci
- run: npm run typecheck
- run: npm run lint-ci
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.18.0
83 changes: 83 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"registry": "https://registry.npmjs.org/"
},
"devDependencies": {
"@jamesacarr/eslint-formatter-github-actions": "^0.2.0",
"@react-native/eslint-config": "0.76.5",
"@types/jest": "^29.5.12",
"@types/react": "^18.3.4",
Expand Down

0 comments on commit 869eae1

Please sign in to comment.