Skip to content

Commit

Permalink
Merge pull request #78 from OUCC/miyaji/change-job-dependency
Browse files Browse the repository at this point in the history
ジョブの順番を変更
  • Loading branch information
miyaji255 authored Dec 12, 2023
2 parents 025fe3f + 020ab2d commit 56c53ff
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ permissions:

jobs:
build:
if: ${{ !cancelled() && !failure() }}
needs: [update-blogmeta]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
Expand All @@ -26,6 +28,8 @@ jobs:
retention-days: 90

lint:
if: ${{ !cancelled() && !failure() }}
needs: [update-blogmeta]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
Expand All @@ -37,6 +41,8 @@ jobs:
- run: npm run lint

typecheck:
if: ${{ !cancelled() && !failure() }}
needs: [update-blogmeta]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
Expand All @@ -49,7 +55,6 @@ jobs:

validate-blog:
if: startsWith(github.head_ref, 'blog/') && !startsWith(github.head_ref, 'blog/admin/')
needs: [build, lint, typecheck]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
Expand All @@ -58,6 +63,7 @@ jobs:
node-version-file: .node-version
cache: npm
- run: npm ci
- run: npm run build
- run: |
git fetch origin main
git diff origin/main..HEAD --name-only | xargs npm run validate-blog --
Expand Down

0 comments on commit 56c53ff

Please sign in to comment.