ci: enable jobs
This commit is contained in:
parent
d014de157d
commit
a32321e495
1 changed files with 88 additions and 88 deletions
|
@ -20,57 +20,57 @@ env:
|
|||
KUBECTL_VERSION: v1.28.0 # renovate: datasource=github-releases depName=kubectl packageName=kubernetes/kubernetes
|
||||
|
||||
jobs:
|
||||
# lint-node:
|
||||
# runs-on: docker
|
||||
# steps:
|
||||
# - run: cat /etc/os-release
|
||||
lint-node:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- run: cat /etc/os-release
|
||||
|
||||
# - uses: actions/checkout@v4
|
||||
# with:
|
||||
# show-progress: false
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
show-progress: false
|
||||
|
||||
# - uses: ./.forgejo/actions/setup
|
||||
# - uses: ./.forgejo/actions/setup-node
|
||||
- uses: ./.forgejo/actions/setup
|
||||
- uses: ./.forgejo/actions/setup-node
|
||||
|
||||
# - run: npm run prettier
|
||||
# - run: npx markdownlint-cli .
|
||||
# - run: make readme
|
||||
# - run: git diff --exit-code --name-only README.md
|
||||
- run: npm run prettier
|
||||
- run: npx markdownlint-cli .
|
||||
- run: make readme
|
||||
- run: git diff --exit-code --name-only README.md
|
||||
|
||||
# lint-helm:
|
||||
# runs-on: docker
|
||||
# steps:
|
||||
# - run: cat /etc/os-release
|
||||
lint-helm:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- run: cat /etc/os-release
|
||||
|
||||
# - run: ps axf
|
||||
- run: ps axf
|
||||
|
||||
# - uses: actions/checkout@v4
|
||||
# with:
|
||||
# show-progress: false
|
||||
# fetch-depth: 0
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
show-progress: false
|
||||
fetch-depth: 0
|
||||
|
||||
# - uses: ./.forgejo/actions/setup
|
||||
- uses: ./.forgejo/actions/setup
|
||||
|
||||
# - name: install chart-testing
|
||||
# uses: helm/chart-testing-action@e6669bcd63d7cb57cb4380c33043eebe5d111992 # v2.6.1
|
||||
# with:
|
||||
# version: ${{ env.HELM_CHART_TESTING_VERSION }}
|
||||
- name: install chart-testing
|
||||
uses: helm/chart-testing-action@e6669bcd63d7cb57cb4380c33043eebe5d111992 # v2.6.1
|
||||
with:
|
||||
version: ${{ env.HELM_CHART_TESTING_VERSION }}
|
||||
|
||||
# - name: install helm
|
||||
# uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3.5
|
||||
# with:
|
||||
# version: ${{ env.HELM_VERSION }}
|
||||
- name: install helm
|
||||
uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3.5
|
||||
with:
|
||||
version: ${{ env.HELM_VERSION }}
|
||||
|
||||
# - name: install helm-unittest
|
||||
# run: helm plugin install --version ${{ env.HELM_UNITTEST_VERSION }} https://github.com/helm-unittest/helm-unittest
|
||||
- name: install helm-unittest
|
||||
run: helm plugin install --version ${{ env.HELM_UNITTEST_VERSION }} https://github.com/helm-unittest/helm-unittest
|
||||
|
||||
# - run: helm dependency build
|
||||
- run: helm dependency build
|
||||
|
||||
# - run: yamllint -f colored .
|
||||
# - run: helm lint
|
||||
# - run: helm template --debug gitea-helm .
|
||||
# - run: make unittests
|
||||
# - run: ct lint --config tools/ct.yml --charts .
|
||||
- run: yamllint -f colored .
|
||||
- run: helm lint
|
||||
- run: helm template --debug gitea-helm .
|
||||
- run: make unittests
|
||||
- run: ct lint --config tools/ct.yml --charts .
|
||||
|
||||
e2e:
|
||||
runs-on: k8s
|
||||
|
@ -118,61 +118,61 @@ jobs:
|
|||
run: ct install --config tools/ct.yml --charts .
|
||||
|
||||
# # Catch-all required check for test matrix
|
||||
# test-success:
|
||||
# needs:
|
||||
# - lint-node
|
||||
# - lint-helm
|
||||
# - e2e
|
||||
# runs-on: docker
|
||||
# timeout-minutes: 1
|
||||
# if: always()
|
||||
# steps:
|
||||
# - name: Fail for failed or cancelled lint-node
|
||||
# if: |
|
||||
# needs.lint-node.result == 'failure' ||
|
||||
# needs.lint-node.result == 'cancelled'
|
||||
# run: exit 1
|
||||
# - name: Fail for failed or cancelled lint-helm
|
||||
# if: |
|
||||
# needs.lint-helm.result == 'failure' ||
|
||||
# needs.lint-helm.result == 'cancelled'
|
||||
# run: exit 1
|
||||
# - name: Fail for failed or cancelled e2e
|
||||
# if: |
|
||||
# needs.e2e.result == 'failure' ||
|
||||
# needs.e2e.result == 'cancelled'
|
||||
# run: exit 1
|
||||
test-success:
|
||||
needs:
|
||||
- lint-node
|
||||
- lint-helm
|
||||
- e2e
|
||||
runs-on: docker
|
||||
timeout-minutes: 1
|
||||
if: always()
|
||||
steps:
|
||||
- name: Fail for failed or cancelled lint-node
|
||||
if: |
|
||||
needs.lint-node.result == 'failure' ||
|
||||
needs.lint-node.result == 'cancelled'
|
||||
run: exit 1
|
||||
- name: Fail for failed or cancelled lint-helm
|
||||
if: |
|
||||
needs.lint-helm.result == 'failure' ||
|
||||
needs.lint-helm.result == 'cancelled'
|
||||
run: exit 1
|
||||
- name: Fail for failed or cancelled e2e
|
||||
if: |
|
||||
needs.e2e.result == 'failure' ||
|
||||
needs.e2e.result == 'cancelled'
|
||||
run: exit 1
|
||||
|
||||
# publish:
|
||||
# runs-on: docker
|
||||
# needs:
|
||||
# - test-success
|
||||
publish:
|
||||
runs-on: docker
|
||||
needs:
|
||||
- test-success
|
||||
|
||||
# if: ${{ github.ref_type == 'tag' }}
|
||||
if: ${{ github.ref_type == 'tag' }}
|
||||
|
||||
# steps:
|
||||
# - uses: actions/checkout@v4
|
||||
# with:
|
||||
# show-progress: false
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
show-progress: false
|
||||
|
||||
# - uses: ./.forgejo/actions/setup
|
||||
# - uses: ./.forgejo/actions/setup-node
|
||||
- uses: ./.forgejo/actions/setup
|
||||
- uses: ./.forgejo/actions/setup-node
|
||||
|
||||
# - name: install helm
|
||||
# uses: https://github.com/azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3.5
|
||||
# with:
|
||||
# version: v3.13.2 # renovate: datasource=github-releases depName=helm packageName=helm/helm
|
||||
- name: install helm
|
||||
uses: https://github.com/azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3.5
|
||||
with:
|
||||
version: v3.13.2 # renovate: datasource=github-releases depName=helm packageName=helm/helm
|
||||
|
||||
# - run: helm dependency build
|
||||
# - run: helm package --version "${GITHUB_REF_NAME#v}" -d tmp/ ./
|
||||
- run: helm dependency build
|
||||
- run: helm package --version "${GITHUB_REF_NAME#v}" -d tmp/ ./
|
||||
|
||||
# - name: login to codeberg packages
|
||||
# run: echo ${TOKEN} | helm registry login -u viceice --password-stdin codeberg.org/forgejo-contrib
|
||||
# env:
|
||||
# TOKEN: ${{secrets.token}}
|
||||
- name: login to codeberg packages
|
||||
run: echo ${TOKEN} | helm registry login -u viceice --password-stdin codeberg.org/forgejo-contrib
|
||||
env:
|
||||
TOKEN: ${{secrets.token}}
|
||||
|
||||
# - name: publish forgejo helm chart
|
||||
# run: helm push tmp/forgejo-${GITHUB_REF_NAME#v}.tgz oci://codeberg.org/forgejo-contrib
|
||||
- name: publish forgejo helm chart
|
||||
run: helm push tmp/forgejo-${GITHUB_REF_NAME#v}.tgz oci://codeberg.org/forgejo-contrib
|
||||
|
||||
# - name: publish forgejo release
|
||||
# run: npm run forgejo:release
|
||||
- name: publish forgejo release
|
||||
run: npm run forgejo:release
|
||||
|
|
Loading…
Reference in a new issue