Update .github/workflows/build_pull_request.yml
This commit is contained in:
parent
b58496b564
commit
a0e1b6e35c
1 changed files with 9 additions and 13 deletions
20
.github/workflows/build_pull_request.yml
vendored
20
.github/workflows/build_pull_request.yml
vendored
|
@ -8,26 +8,22 @@ on:
|
||||||
- '!.github/**'
|
- '!.github/**'
|
||||||
- '.github/workflows/build_pull_request.yml'
|
- '.github/workflows/build_pull_request.yml'
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CI_CHUNK_SIZE: 65
|
CI_CHUNK_SIZE: 65
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
prepare:
|
prepare:
|
||||||
name: Prepare job
|
name: Prepare job
|
||||||
runs-on: ubuntu-22.04
|
runs-on: docker
|
||||||
outputs:
|
outputs:
|
||||||
individualMatrix: ${{ steps.generate-matrices.outputs.individualMatrix }}
|
individualMatrix: ${{ steps.generate-matrices.outputs.individualMatrix }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code manually
|
- name: Clone repo
|
||||||
run: git clone https://kohiden.xyz/AlmightyHak/extensions-source.git .
|
uses: https://github.com/actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
|
||||||
|
|
||||||
- name: Run in Node.js container manually
|
|
||||||
run: |
|
|
||||||
docker run --rm \
|
|
||||||
-v "$(pwd)":/app \
|
|
||||||
-w /app \
|
|
||||||
node:18-bullseye \
|
|
||||||
sh -c "npm install && npm test"
|
|
||||||
|
|
||||||
- name: Validate Gradle Wrapper
|
- name: Validate Gradle Wrapper
|
||||||
uses: https://github.com/gradle/wrapper-validation-action@a494d935f4b56874c4a5a87d19af7afcf3a163d0 # v2
|
uses: https://github.com/gradle/wrapper-validation-action@a494d935f4b56874c4a5a87d19af7afcf3a163d0 # v2
|
||||||
|
@ -56,7 +52,7 @@ jobs:
|
||||||
build_individual:
|
build_individual:
|
||||||
name: Build individual modules
|
name: Build individual modules
|
||||||
needs: prepare
|
needs: prepare
|
||||||
runs-on: ubuntu-22.04
|
runs-on: docker
|
||||||
strategy:
|
strategy:
|
||||||
matrix: ${{ fromJSON(needs.prepare.outputs.individualMatrix) }}
|
matrix: ${{ fromJSON(needs.prepare.outputs.individualMatrix) }}
|
||||||
steps:
|
steps:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue