fix: build test pull request changes
This commit is contained in:
parent
d7f40cf578
commit
3d14c9d9fe
1 changed files with 4 additions and 47 deletions
51
.github/workflows/build-test-pull-request.yml
vendored
51
.github/workflows/build-test-pull-request.yml
vendored
|
|
@ -6,49 +6,9 @@ on:
|
||||||
types: ["opened", "synchronize", "ready_for_review"]
|
types: ["opened", "synchronize", "ready_for_review"]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
get-changed-files:
|
lint-apiserver:
|
||||||
if: github.event.pull_request.draft == false
|
if: github.event.pull_request.draft == false
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
|
||||||
apiserver_changed: ${{ steps.changed-files.outputs.apiserver_any_changed }}
|
|
||||||
admin_changed: ${{ steps.changed-files.outputs.admin_any_changed }}
|
|
||||||
space_changed: ${{ steps.changed-files.outputs.space_any_changed }}
|
|
||||||
web_changed: ${{ steps.changed-files.outputs.web_any_changed }}
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: Get changed files
|
|
||||||
id: changed-files
|
|
||||||
uses: tj-actions/changed-files@v44
|
|
||||||
with:
|
|
||||||
files_yaml: |
|
|
||||||
apiserver:
|
|
||||||
- apiserver/**
|
|
||||||
admin:
|
|
||||||
- admin/**
|
|
||||||
- packages/**
|
|
||||||
- 'package.json'
|
|
||||||
- 'yarn.lock'
|
|
||||||
- 'tsconfig.json'
|
|
||||||
- 'turbo.json'
|
|
||||||
space:
|
|
||||||
- space/**
|
|
||||||
- packages/**
|
|
||||||
- 'package.json'
|
|
||||||
- 'yarn.lock'
|
|
||||||
- 'tsconfig.json'
|
|
||||||
- 'turbo.json'
|
|
||||||
web:
|
|
||||||
- web/**
|
|
||||||
- packages/**
|
|
||||||
- 'package.json'
|
|
||||||
- 'yarn.lock'
|
|
||||||
- 'tsconfig.json'
|
|
||||||
- 'turbo.json'
|
|
||||||
|
|
||||||
lint-apiserver:
|
|
||||||
needs: get-changed-files
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: needs.get-changed-files.outputs.apiserver_changed == 'true'
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
|
|
@ -63,8 +23,7 @@ jobs:
|
||||||
run: ruff check --fix apiserver
|
run: ruff check --fix apiserver
|
||||||
|
|
||||||
lint-admin:
|
lint-admin:
|
||||||
needs: get-changed-files
|
if: github.event.pull_request.draft == false
|
||||||
if: needs.get-changed-files.outputs.admin_changed == 'true'
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
@ -76,8 +35,7 @@ jobs:
|
||||||
- run: yarn lint --filter=admin
|
- run: yarn lint --filter=admin
|
||||||
|
|
||||||
lint-space:
|
lint-space:
|
||||||
needs: get-changed-files
|
if: github.event.pull_request.draft == false
|
||||||
if: needs.get-changed-files.outputs.space_changed == 'true'
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
@ -89,8 +47,7 @@ jobs:
|
||||||
- run: yarn lint --filter=space
|
- run: yarn lint --filter=space
|
||||||
|
|
||||||
lint-web:
|
lint-web:
|
||||||
needs: get-changed-files
|
if: github.event.pull_request.draft == false
|
||||||
if: needs.get-changed-files.outputs.web_changed == 'true'
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue