Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions .github/workflows/mobile-app-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@ name: Test Mobile App

on:
pull_request:
branches:
- develop
- main
paths:
- .github/workflows/test.yml
- .github/workflows/mobile-app-test.yml
- mobile-app/**

env:
Expand All @@ -33,7 +30,6 @@ jobs:
config: ${{ env.WORKING_DIRECTORY }}/.ls-lint.yml
workdir: ${{ env.WORKING_DIRECTORY }}
debug: true
warn: false
- name: Run ESLint
run: npm run lint
- name: Run Prettier
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/project-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Test Project

on:
pull_request:
paths-ignore:
- api/**
- mobile-app/**

jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1
- name: Run ls-lint
uses: ls-lint/action@v2
with:
debug: true
13 changes: 13 additions & 0 deletions .ls-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
ls:
dir: kebab-case
.md: SCREAMING_SNAKE_CASE
.github:
workflows:
.yml: kebab-case

ignore:
- .git
- .vscode
- api
- mobile-app
- "!*.md"
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,9 @@ This is a template for mobile app development using:
This is a template for building APIs using:

- [Go](https://go.dev/) // TODO: 選定して更新

## [ls-lint](./.ls-lint.yml)

This is a configuration file for [ls-lint](https://ls-lint.org/), a linter for directory structures.
GitHub Actions are set up to run ls-lint on pull requests to ensure that the directory structure adheres to the defined rules.
For [api](./api) and [mobile-app](./mobile-app) directories, add settings for each directory, as they are ignored except for markdown files.