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
22
.github/workflows/build_pull_request.yml
vendored
22
.github/workflows/build_pull_request.yml
vendored
|
@ -8,26 +8,22 @@ on:
|
|||
- '!.github/**'
|
||||
- '.github/workflows/build_pull_request.yml'
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
CI_CHUNK_SIZE: 65
|
||||
|
||||
jobs:
|
||||
prepare:
|
||||
name: Prepare job
|
||||
runs-on: ubuntu-22.04
|
||||
runs-on: docker
|
||||
outputs:
|
||||
individualMatrix: ${{ steps.generate-matrices.outputs.individualMatrix }}
|
||||
steps:
|
||||
- name: Checkout code manually
|
||||
run: git clone https://kohiden.xyz/AlmightyHak/extensions-source.git .
|
||||
|
||||
- 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: Clone repo
|
||||
uses: https://github.com/actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
|
||||
|
||||
- name: Validate Gradle Wrapper
|
||||
uses: https://github.com/gradle/wrapper-validation-action@a494d935f4b56874c4a5a87d19af7afcf3a163d0 # v2
|
||||
|
@ -56,7 +52,7 @@ jobs:
|
|||
build_individual:
|
||||
name: Build individual modules
|
||||
needs: prepare
|
||||
runs-on: ubuntu-22.04
|
||||
runs-on: docker
|
||||
strategy:
|
||||
matrix: ${{ fromJSON(needs.prepare.outputs.individualMatrix) }}
|
||||
steps:
|
||||
|
@ -68,7 +64,7 @@ jobs:
|
|||
with:
|
||||
java-version: 17
|
||||
distribution: temurin
|
||||
|
||||
|
||||
- name: Set up Android SDK
|
||||
uses: https://github.com/android-actions/setup-android@00854ea68c109d98c75d956347303bf7c45b0277 # v3
|
||||
with:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue