Skip to content

Commit

Permalink
スクリプト類を整理 (#960)
Browse files Browse the repository at this point in the history
* Nicochuuからデータ取得

* fx

* スクリプト類を整理

* update prettierignore

* rm swcrc

* fxci
  • Loading branch information
SnO2WMaN authored Dec 5, 2023
1 parent 175a82f commit f652b34
Show file tree
Hide file tree
Showing 6 changed files with 316 additions and 63 deletions.
30 changes: 4 additions & 26 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,33 +18,10 @@ 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
- run: npm run lint:graphql-schema-linter

test:
name: Test
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
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ pnpm-lock.yaml

dist/

# Nix
flake.lock

# migrations
src/db/migrations/

Expand Down
12 changes: 0 additions & 12 deletions .swcrc

This file was deleted.

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 f652b34

Please sign in to comment.