mirror of
https://github.com/bec-project/slurm_manager.git
synced 2026-11-02 10:35:24 +01:00
52 lines
1.3 KiB
YAML
52 lines
1.3 KiB
YAML
name: Full CI
|
|
on:
|
|
push:
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
check_pr_status:
|
|
uses: ./.github/workflows/check_pr.yml
|
|
|
|
formatter:
|
|
needs: check_pr_status
|
|
if: needs.check_pr_status.outputs.branch-pr == ''
|
|
uses: ./.github/workflows/formatter.yml
|
|
|
|
unit_tests:
|
|
needs: check_pr_status
|
|
if: needs.check_pr_status.outputs.branch-pr == ''
|
|
uses: ./.github/workflows/unit_tests.yml
|
|
|
|
go_worker:
|
|
needs: check_pr_status
|
|
if: needs.check_pr_status.outputs.branch-pr == ''
|
|
uses: ./.github/workflows/go_worker.yml
|
|
|
|
publish_worker:
|
|
needs: [formatter, unit_tests, go_worker]
|
|
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
actions: read
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
persist-credentials: false
|
|
- uses: actions/download-artifact@v4
|
|
with:
|
|
name: bec-slurm-worker-packages
|
|
path: worker/dist
|
|
- name: Publish Linux archives and RPMs to Gitea
|
|
env:
|
|
GITEA_REGISTRY_TOKEN: ${{ secrets.GITEA_REGISTRY_TOKEN }}
|
|
run: bash worker/scripts/upload-packages.sh "${GITHUB_REF_NAME#v}"
|