Skip to content

Commit

Permalink
スクリプト類を整理
Browse files Browse the repository at this point in the history
  • Loading branch information
SnO2WMaN committed Nov 27, 2023
1 parent acf9833 commit 05f3cb2
Show file tree
Hide file tree
Showing 4 changed files with 312 additions and 50 deletions.
28 changes: 3 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,34 +18,11 @@ jobs:
node-version-file: .node-version
cache: npm
- run: npm ci

- run: npm run lint:eslint
- run: npm run lint:prettier

- run: npm run lint:eslint:report
- name: Annotate ESLint results
uses: ataylorme/eslint-annotate-action@v2
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
report-json: ".eslint-report.json"

- run: npm run codegen
- run: npm run lint:graphql-schema-linter:report

typecheck:
name: Type Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4
with:
node-version-file: .node-version
cache: npm
- run: npm ci
- run: npm run codegen
- run: npm run prisma:client
- run: npm run generate:buf
- run: npm run typecheck

test:
name: Test
runs-on: ubuntu-latest
Expand Down Expand Up @@ -85,7 +62,8 @@ jobs:
- run: npm ci
- run: npm run codegen
- run: npm run prisma:client
- run: npm run generate:buf
- run: npm run buf:generate
- run: npm run typecheck
- run: npm run test
env:
PRISMA_DATABASE_URL: postgres://${{ env.POSTGRES_USERNAME }}:${{ env.POSTGRES_PASSWORD }}@localhost:5432/${{ env.POSTGRES_DATABASE }}
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RUN npm run prisma:client

COPY buf.gen.yaml ./
COPY proto ./proto
RUN npm run generate:buf
RUN npm run buf:generate

COPY ./codegen.yml ./
COPY ./src ./src
Expand Down
Loading

0 comments on commit 05f3cb2

Please sign in to comment.