Skip to content

Merge pull request #321 from traPtitech/dependabot/npm_and_yarn/main/… #1010

Merge pull request #321 from traPtitech/dependabot/npm_and_yarn/main/…

Merge pull request #321 from traPtitech/dependabot/npm_and_yarn/main/… #1010

Workflow file for this run

name: common
on:
push:
branches:
- main
pull_request:
jobs:
dependencies:
name: Prepare packages and Generate apis
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ./.node-version
cache: npm
- run: npm ci
- uses: actions/upload-artifact@v4
with:
name: apis
path: ./src/lib/apis/generated
type-check:
name: Type Check
runs-on: ubuntu-latest
needs: [dependencies]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ./.node-version
cache: npm
- run: npm ci
- uses: actions/download-artifact@v4
with:
name: apis
path: ./src/lib/apis/generated
- run: npm run type-check
lint:
name: Lint
runs-on: ubuntu-latest
needs: [dependencies]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ./.node-version
cache: npm
- run: npm ci
- uses: actions/download-artifact@v4
with:
name: apis
path: ./src/lib/apis/generated
- run: npm run lint
build:
name: Build
runs-on: ubuntu-latest
needs: [dependencies]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ./.node-version
cache: npm
- run: npm ci
- uses: actions/download-artifact@v4
with:
name: apis
path: ./src/lib/apis/generated
- run: npm run build