diff --git a/.github/workflows/job-static-check.yml b/.github/workflows/job-static-check.yml index 3b265a0a91..35616fcf16 100644 --- a/.github/workflows/job-static-check.yml +++ b/.github/workflows/job-static-check.yml @@ -1,45 +1,28 @@ name: Static Check -on: - workflow_call +on: workflow_call jobs: static_check: runs-on: ubuntu-24.04 steps: - - name: Checkout Core - uses: actions/checkout@v3 - with: - submodules: recursive - path: core + - name: Checkout Core + uses: actions/checkout@v3 + with: + submodules: recursive + path: core - - name: Get Togethers - uses: cfengine/together-javascript-action@main - id: together - with: - myToken: ${{ secrets.GITHUB_TOKEN }} + - name: Get Togethers + uses: cfengine/together-javascript-action@main + id: together + with: + myToken: ${{ secrets.GITHUB_TOKEN }} - - name: Checkout Buildscripts - uses: actions/checkout@v3 - with: - repository: cfengine/buildscripts - submodules: recursive - path: buildscripts - ref: ${{steps.together.outputs.buildscripts || github.base_ref || github.ref}} + - name: Prepare Environment + run: | + sudo apt-get update && \ + sudo apt-get install -y buildah - - name: Checkout Masterfiles - uses: actions/checkout@v3 - with: - repository: cfengine/masterfiles - submodules: recursive - path: masterfiles - ref: ${{steps.together.outputs.masterfiles || github.base_ref || github.ref}} - - - name: Prepare Environment - run: | - sudo apt-get update && \ - sudo apt-get install -y buildah - - - name: Run The Test - working-directory: ./core - run: ./tests/static-check/run.sh + - name: Run The Test + working-directory: ./core + run: ./tests/static-check/run.sh