Skip to content

Commit

Permalink
Merge branch 'main' into fileuploader
Browse files Browse the repository at this point in the history
  • Loading branch information
Akshat55 authored May 6, 2024
2 parents 8524494 + bced86d commit 7712360
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,8 @@ trim_trailing_whitespace = true
[*.md]
max_line_length = off
trim_trailing_whitespace = false


[*.yml]
indent_style = space
indent_size = 2
25 changes: 25 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,31 @@ on:
workflow_dispatch:

jobs:
lint:
runs-on: ubuntu-latest
steps:
# Checkout to branch
- name: Checkout
uses: actions/checkout@v3

# Set up node to use v16 & cache node modules
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "20"
cache: "npm"
cache-dependency-path: "package-lock.json"

# Install dependencies
- name: Install dependencies
run: npm install

# Check files are linted
- name: Run nx lint
run: npm run lint
env:
CI: true

build:
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion app/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"$schema": "../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "app/src",
"projectType": "application",
"tags": [],
"tags": ["application"],
"targets": {
"build": {
"executor": "@nx/vite:build",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@
"version": "nx release version",
"start": "nx serve app",
"build": "nx build app",
"lint": "nx lint app",
"lint:fix": "nx lint app --fix",
"lint": "nx run-many --projects=tag:library,tag:application --target=lint",
"lint:fix": "nx run-many --projects=tag:library,tag:application --target=lint --fix",
"prepare": "husky install"
},
"browserslist": [
Expand Down
2 changes: 1 addition & 1 deletion player/react/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "player/react/src",
"projectType": "library",
"tags": [],
"tags": ["library"],
"targets": {
"lint": {
"executor": "@nx/eslint:lint",
Expand Down
2 changes: 1 addition & 1 deletion sdk/react/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"$schema": "../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "sdk/react/src",
"projectType": "library",
"tags": [],
"tags": ["library"],
"targets": {
"lint": {
"executor": "@nx/eslint:lint",
Expand Down

0 comments on commit 7712360

Please sign in to comment.